最接近的命名颜色 · #221224
#221224
最接近的命名颜色: Shot in the Dark
#221224(rgb(34 18 36)、hsl(293 33% 11%)、oklch(0.213 0.042 322.9))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#221224
oklch(0.213 0.042 322.9)
颜色转换
- HEX
- #221224
- RGB
- rgb(34 18 36)
- HSL
- hsl(293 33% 11%)
- HWB
- hwb(293 7% 86%)
- OKLCH
- oklch(0.213 0.042 322.9)
- OKLab
- oklab(0.213 0.033 -0.025)
- CIE Lab
- lab(8.1 11.45 -9.11)
- LCH
- lch(8.1 14.63 321.5)
- CMYK
- cmyk(6% 50% 0% 86%)
浅色调 · 深色调 · 灰色调
浅色调
- 352537
- 493A4A
- 5D505F
- 726774
- 887E89
- 9F97A0
- B6B0B7
- CECACE
- E6E4E6
深色调
- 1C0E1E
- 160A18
- 110712
- 0B040C
- 070207
- 030104
- 010102
- 000000
- 000000
灰色调
- 2B1C2C
- 342635
- 3D303E
- 463B47
- 4F4650
- 595159
- 625C63
- 6C686C
- 767476
配色和谐
互补色 +180°
- 221224
Shot in the Dark
- 0D1E0C
≈ Nightmare
类似色 -30° +30°
- 221224
Shot in the Dark
- 1A152A
≈ Sambucus
- 27101B
≈ Inside
三角配色 +120° +240°
- 221224
Shot in the Dark
- 221701
≈ Cannon Black
- 001E20
≈ Stellar Explorer
分裂互补色 +150° +210°
- 221224
Shot in the Dark
- 191B03
≈ Noir Mystique
- 001F17
≈ Clock Chimes Thirteen
四角配色 +90° +180° +270°
- 221224
Shot in the Dark
- 281306
≈ Shadow Play
- 0D1E0C
≈ Nightmare
- 021C29
≈ Oxford by Night
对比度与无障碍
Ag
AAA白底
WCAG 17.79:1 · APCA Lc 105
Ag
Fail黑底
WCAG 1.18:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 17.79:1 (AAA) · APCA Lc 105
Contrast pairs
代码片段
CSS
:root {
--shot-in-the-dark: #221224;
--shot-in-the-dark-rgb: 34 18 36;
--shot-in-the-dark-oklch: oklch(0.213 0.042 322.9);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(293 33% 11%);
border-color: oklch(0.213 0.042 322.9);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #221224;
--color-shot-in-the-dark-50: #fcf1fc;
--color-shot-in-the-dark-100: #efe3f0;
--color-shot-in-the-dark-200: #decfde;
--color-shot-in-the-dark-300: #c3b1c3;
--color-shot-in-the-dark-400: #ab97ad;
--color-shot-in-the-dark-500: #947d96;
--color-shot-in-the-dark-600: #7d6a7f;
--color-shot-in-the-dark-700: #645566;
--color-shot-in-the-dark-800: #493e4b;
--color-shot-in-the-dark-900: #332b34;
--color-shot-in-the-dark-950: #1e1820;
}SCSS
$shot-in-the-dark: #221224;
$shot-in-the-dark-rgb: 34, 18, 36;
$shot-in-the-dark-light: mix(#fff, $shot-in-the-dark, 20%);
$shot-in-the-dark-dark: mix(#000, $shot-in-the-dark, 20%);
.element {
color: $shot-in-the-dark;
box-shadow: 0 0 0 2px rgba($shot-in-the-dark, 0.35);
}