最接近的命名颜色 · #211226
#211226
最接近的命名颜色: Shot in the Dark
#211226(rgb(33 18 38)、hsl(285 36% 11%)、oklch(0.213 0.044 317.3))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#211226
oklch(0.213 0.044 317.3)
颜色转换
- HEX
- #211226
- RGB
- rgb(33 18 38)
- HSL
- hsl(285 36% 11%)
- HWB
- hwb(285 7% 85%)
- OKLCH
- oklch(0.213 0.044 317.3)
- OKLab
- oklab(0.213 0.032 -0.03)
- CIE Lab
- lab(8.03 11.41 -10.72)
- LCH
- lch(8.03 15.66 316.8)
- CMYK
- cmyk(13% 53% 0% 85%)
浅色调 · 深色调 · 灰色调
浅色调
- 342539
- 473A4C
- 5C5060
- 716775
- 887E8B
- 9E97A1
- B6B0B8
- CECACF
- E6E4E7
深色调
- 1B0E20
- 160A19
- 100713
- 0B040D
- 060208
- 030104
- 010102
- 000001
- 000000
灰色调
- 2A1C2E
- 332637
- 3C3040
- 453B48
- 4E4651
- 58515A
- 625C64
- 6C686D
- 767476
配色和谐
互补色 +180°
- 211226
Shot in the Dark
- 0F1D09
≈ Pinch of Pepper
类似色 -30° +30°
- 211226
Shot in the Dark
- 18152C
≈ Sambucus
- 27101D
≈ Inside
三角配色 +120° +240°
- 211226
Shot in the Dark
- 241600
≈ Cannon Black
- 001E1F
≈ Stellar Explorer
分裂互补色 +150° +210°
- 211226
Shot in the Dark
- 1B1A01
≈ Noir Mystique
- 001F15
≈ Clock Chimes Thirteen
四角配色 +90° +180° +270°
- 211226
Shot in the Dark
- 291206
≈ Root Brew
- 0F1D09
≈ Pinch of Pepper
- 001C28
≈ Oxford by Night
对比度与无障碍
Ag
AAA白底
WCAG 17.80:1 · APCA Lc 105
Ag
Fail黑底
WCAG 1.17:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 17.80:1 (AAA) · APCA Lc 105
Contrast pairs
代码片段
CSS
:root {
--shot-in-the-dark: #211226;
--shot-in-the-dark-rgb: 33 18 38;
--shot-in-the-dark-oklch: oklch(0.213 0.044 317.3);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(285 36% 11%);
border-color: oklch(0.213 0.044 317.3);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #211226;
--color-shot-in-the-dark-50: #fbf1fd;
--color-shot-in-the-dark-100: #eee3f1;
--color-shot-in-the-dark-200: #ddcfe0;
--color-shot-in-the-dark-300: #c1b1c6;
--color-shot-in-the-dark-400: #a997b0;
--color-shot-in-the-dark-500: #927d9a;
--color-shot-in-the-dark-600: #7c6a82;
--color-shot-in-the-dark-700: #635568;
--color-shot-in-the-dark-800: #483e4d;
--color-shot-in-the-dark-900: #322b35;
--color-shot-in-the-dark-950: #1e1821;
}SCSS
$shot-in-the-dark: #211226;
$shot-in-the-dark-rgb: 33, 18, 38;
$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);
}