最接近的命名颜色 · #211128
#211128
最接近的命名颜色: Shot in the Dark
#211128(rgb(33 17 40)、hsl(282 40% 11%)、oklch(0.212 0.049 314.9))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#211128
oklch(0.212 0.049 314.9)
颜色转换
- HEX
- #211128
- RGB
- rgb(33 17 40)
- HSL
- hsl(282 40% 11%)
- HWB
- hwb(282 7% 84%)
- OKLCH
- oklch(0.212 0.049 314.9)
- OKLab
- oklab(0.212 0.034 -0.035)
- CIE Lab
- lab(7.85 12.51 -12.51)
- LCH
- lch(7.85 17.69 315)
- CMYK
- cmyk(18% 58% 0% 84%)
浅色调 · 深色调 · 灰色调
浅色调
- 34253B
- 47394E
- 5C4F62
- 716677
- 887E8C
- 9E96A2
- B6B0B9
- CEC9D0
- E6E4E7
深色调
- 1B0D21
- 16091B
- 100615
- 0B040F
- 060209
- 030104
- 010002
- 000001
- 000000
灰色调
- 2A1B30
- 332539
- 3C3041
- 453A4A
- 4E4553
- 58515B
- 625C64
- 6C686E
- 767477
配色和谐
互补色 +180°
- 211128
Shot in the Dark
- 0E1D05
≈ Yuzu Soy
类似色 -30° +30°
- 211128
Shot in the Dark
- 17152E
≈ Lost in Sadness
- 280E1E
≈ Inside
三角配色 +120° +240°
- 211128
Shot in the Dark
- 251500
≈ Cannon Black
- 001E1E
≈ Stellar Explorer
分裂互补色 +150° +210°
- 211128
Shot in the Dark
- 1C1A00
≈ Noir Mystique
- 001F13
≈ Clock Chimes Thirteen
四角配色 +90° +180° +270°
- 211128
Shot in the Dark
- 2B1004
≈ Root Brew
- 0E1D05
≈ Yuzu Soy
- 001C26
≈ Oxford by Night
对比度与无障碍
Ag
AAA白底
WCAG 17.86:1 · APCA Lc 105
Ag
Fail黑底
WCAG 1.17:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 17.86:1 (AAA) · APCA Lc 105
Contrast pairs
代码片段
CSS
:root {
--shot-in-the-dark: #211128;
--shot-in-the-dark-rgb: 33 17 40;
--shot-in-the-dark-oklch: oklch(0.212 0.049 314.9);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(282 40% 11%);
border-color: oklch(0.212 0.049 314.9);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #211128;
--color-shot-in-the-dark-50: #fbf1ff;
--color-shot-in-the-dark-100: #efe3f3;
--color-shot-in-the-dark-200: #ddcee2;
--color-shot-in-the-dark-300: #c2b0c8;
--color-shot-in-the-dark-400: #aa96b3;
--color-shot-in-the-dark-500: #937d9d;
--color-shot-in-the-dark-600: #7c6a85;
--color-shot-in-the-dark-700: #63546a;
--color-shot-in-the-dark-800: #483e4f;
--color-shot-in-the-dark-900: #322a37;
--color-shot-in-the-dark-950: #1e1822;
}SCSS
$shot-in-the-dark: #211128;
$shot-in-the-dark-rgb: 33, 17, 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);
}