最接近的命名颜色 · #20122A
#20122A
最接近的命名颜色: Shot in the Dark
#20122A(rgb(32 18 42)、hsl(275 40% 12%)、oklch(0.214 0.049 309.7))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#20122A
oklch(0.214 0.049 309.7)
颜色转换
- HEX
- #20122a
- RGB
- rgb(32 18 42)
- HSL
- hsl(275 40% 12%)
- HWB
- hwb(275 7% 84%)
- OKLCH
- oklch(0.214 0.049 309.7)
- OKLab
- oklab(0.214 0.031 -0.038)
- CIE Lab
- lab(8.09 11.85 -13.64)
- LCH
- lch(8.09 18.07 311)
- CMYK
- cmyk(24% 57% 0% 84%)
浅色调 · 深色调 · 灰色调
浅色调
- 33263D
- 463A50
- 5B5064
- 706778
- 877E8E
- 9E97A3
- B5B0BA
- CDCAD0
- E6E4E7
深色调
- 1A0E23
- 150A1C
- 0F0716
- 0A0410
- 06020A
- 030105
- 010102
- 000001
- 000000
灰色调
- 291C32
- 32263A
- 3B3043
- 443B4B
- 4E4654
- 57515C
- 615D65
- 6B686E
- 767477
配色和谐
互补色 +180°
- 20122A
Shot in the Dark
- 121D04
≈ Yuzu Soy
类似色 -30° +30°
- 20122A
Shot in the Dark
- 15162F
≈ Lost in Sadness
- 280F20
≈ Inside
三角配色 +120° +240°
- 20122A
Shot in the Dark
- 271500
≈ Cannon Black
- 001E1D
≈ Stellar Explorer
分裂互补色 +150° +210°
- 20122A
Shot in the Dark
- 1E1900
≈ Noir Mystique
- 002011
≈ Clock Chimes Thirteen
四角配色 +90° +180° +270°
- 20122A
Shot in the Dark
- 2C1007
≈ Root Brew
- 121D04
≈ Yuzu Soy
- 001D25
≈ Oxford by Night
对比度与无障碍
Ag
AAA白底
WCAG 17.77:1 · APCA Lc 104
Ag
Fail黑底
WCAG 1.18:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 17.77:1 (AAA) · APCA Lc 104
Contrast pairs
代码片段
CSS
:root {
--shot-in-the-dark: #20122a;
--shot-in-the-dark-rgb: 32 18 42;
--shot-in-the-dark-oklch: oklch(0.214 0.049 309.7);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(275 40% 12%);
border-color: oklch(0.214 0.049 309.7);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #20122a;
--color-shot-in-the-dark-50: #faf1ff;
--color-shot-in-the-dark-100: #ede4f4;
--color-shot-in-the-dark-200: #dbcfe4;
--color-shot-in-the-dark-300: #c0b1ca;
--color-shot-in-the-dark-400: #a797b5;
--color-shot-in-the-dark-500: #907d9f;
--color-shot-in-the-dark-600: #7a6a86;
--color-shot-in-the-dark-700: #62556c;
--color-shot-in-the-dark-800: #473e50;
--color-shot-in-the-dark-900: #312b38;
--color-shot-in-the-dark-950: #1d1822;
}SCSS
$shot-in-the-dark: #20122a;
$shot-in-the-dark-rgb: 32, 18, 42;
$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);
}