最接近的命名颜色 · #201228
#201228
最接近的命名颜色: Shot in the Dark
#201228(rgb(32 18 40)、hsl(278 38% 11%)、oklch(0.213 0.046 312.3))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#201228
oklch(0.213 0.046 312.3)
颜色转换
- HEX
- #201228
- RGB
- rgb(32 18 40)
- HSL
- hsl(278 38% 11%)
- HWB
- hwb(278 7% 84%)
- OKLCH
- oklch(0.213 0.046 312.3)
- OKLab
- oklab(0.213 0.031 -0.034)
- CIE Lab
- lab(7.98 11.41 -12.32)
- LCH
- lch(7.98 16.79 312.8)
- CMYK
- cmyk(20% 55% 0% 84%)
浅色调 · 深色调 · 灰色调
浅色调
- 33263B
- 463A4E
- 5B5062
- 716777
- 877E8C
- 9E97A2
- B5B0B9
- CDCAD0
- E6E4E7
深色调
- 1A0E21
- 150A1B
- 0F0715
- 0A040F
- 060209
- 030104
- 010102
- 000001
- 000000
灰色调
- 291C30
- 322639
- 3B3041
- 443B4A
- 4E4653
- 57515B
- 615C64
- 6B686D
- 767477
配色和谐
互补色 +180°
- 201228
Shot in the Dark
- 101D06
≈ Nightmare
类似色 -30° +30°
- 201228
Shot in the Dark
- 16162D
≈ Sambucus
- 270F1F
≈ Inside
三角配色 +120° +240°
- 201228
Shot in the Dark
- 251500
≈ Cannon Black
- 001E1D
≈ Stellar Explorer
分裂互补色 +150° +210°
- 201228
Shot in the Dark
- 1D1900
≈ Noir Mystique
- 001F12
≈ Clock Chimes Thirteen
四角配色 +90° +180° +270°
- 201228
Shot in the Dark
- 2A1107
≈ Root Brew
- 101D06
≈ Nightmare
- 001D26
≈ Oxford by Night
对比度与无障碍
Ag
AAA白底
WCAG 17.81:1 · APCA Lc 105
Ag
Fail黑底
WCAG 1.17:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 17.81:1 (AAA) · APCA Lc 105
Contrast pairs
代码片段
CSS
:root {
--shot-in-the-dark: #201228;
--shot-in-the-dark-rgb: 32 18 40;
--shot-in-the-dark-oklch: oklch(0.213 0.046 312.3);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(278 38% 11%);
border-color: oklch(0.213 0.046 312.3);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #201228;
--color-shot-in-the-dark-50: #faf1ff;
--color-shot-in-the-dark-100: #eee4f3;
--color-shot-in-the-dark-200: #dccfe2;
--color-shot-in-the-dark-300: #c0b1c8;
--color-shot-in-the-dark-400: #a897b2;
--color-shot-in-the-dark-500: #917e9d;
--color-shot-in-the-dark-600: #7a6a84;
--color-shot-in-the-dark-700: #62556a;
--color-shot-in-the-dark-800: #473e4e;
--color-shot-in-the-dark-900: #312b37;
--color-shot-in-the-dark-950: #1d1821;
}SCSS
$shot-in-the-dark: #201228;
$shot-in-the-dark-rgb: 32, 18, 40;
$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);
}