最接近的命名颜色 · #201226
#201226
最接近的命名颜色: Shot in the Dark
#201226(rgb(32 18 38)、hsl(282 36% 11%)、oklch(0.211 0.043 315.2))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#201226
oklch(0.211 0.043 315.2)
颜色转换
- HEX
- #201226
- RGB
- rgb(32 18 38)
- HSL
- hsl(282 36% 11%)
- HWB
- hwb(282 7% 85%)
- OKLCH
- oklch(0.211 0.043 315.2)
- OKLab
- oklab(0.211 0.031 -0.03)
- CIE Lab
- lab(7.88 10.97 -10.98)
- LCH
- lch(7.88 15.52 315)
- CMYK
- cmyk(16% 53% 0% 85%)
浅色调 · 深色调 · 灰色调
浅色调
- 332539
- 463A4C
- 5B5060
- 716775
- 877E8B
- 9E97A1
- B5B0B8
- CDCACF
- E6E4E7
深色调
- 1A0E20
- 150A19
- 0F0713
- 0A040D
- 060208
- 030104
- 010102
- 000001
- 000000
灰色调
- 291C2E
- 322637
- 3B3040
- 443B48
- 4E4651
- 57515A
- 615C64
- 6B686D
- 767476
配色和谐
互补色 +180°
- 201226
Shot in the Dark
- 0F1D08
≈ Pinch of Pepper
类似色 -30° +30°
- 201226
Shot in the Dark
- 17152B
≈ Sambucus
- 26101D
≈ Inside
三角配色 +120° +240°
- 201226
Shot in the Dark
- 241501
≈ Cannon Black
- 001E1E
≈ Stellar Explorer
分裂互补色 +150° +210°
- 201226
Shot in the Dark
- 1C1901
≈ Noir Mystique
- 011F14
≈ Clock Chimes Thirteen
四角配色 +90° +180° +270°
- 201226
Shot in the Dark
- 281107
≈ Root Brew
- 0F1D08
≈ Pinch of Pepper
- 001C26
≈ Oxford by Night
对比度与无障碍
Ag
AAA白底
WCAG 17.85:1 · APCA Lc 105
Ag
Fail黑底
WCAG 1.17:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 17.85:1 (AAA) · APCA Lc 105
Contrast pairs
代码片段
CSS
:root {
--shot-in-the-dark: #201226;
--shot-in-the-dark-rgb: 32 18 38;
--shot-in-the-dark-oklch: oklch(0.211 0.043 315.2);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(282 36% 11%);
border-color: oklch(0.211 0.043 315.2);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #201226;
--color-shot-in-the-dark-50: #faf2fd;
--color-shot-in-the-dark-100: #eee4f2;
--color-shot-in-the-dark-200: #dccfe1;
--color-shot-in-the-dark-300: #c1b1c6;
--color-shot-in-the-dark-400: #a897b0;
--color-shot-in-the-dark-500: #917e9a;
--color-shot-in-the-dark-600: #7b6b82;
--color-shot-in-the-dark-700: #625568;
--color-shot-in-the-dark-800: #483e4d;
--color-shot-in-the-dark-900: #322b36;
--color-shot-in-the-dark-950: #1e1821;
}SCSS
$shot-in-the-dark: #201226;
$shot-in-the-dark-rgb: 32, 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);
}