最接近的命名颜色 · #1F1229
#1F1229
最接近的命名颜色: Shot in the Dark
#1F1229(rgb(31 18 41)、hsl(274 39% 12%)、oklch(0.212 0.047 308.9))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#1F1229
oklch(0.212 0.047 308.9)
颜色转换
- HEX
- #1f1229
- RGB
- rgb(31 18 41)
- HSL
- hsl(274 39% 12%)
- HWB
- hwb(274 7% 84%)
- OKLCH
- oklch(0.212 0.047 308.9)
- OKLab
- oklab(0.212 0.03 -0.037)
- CIE Lab
- lab(7.88 11.21 -13.23)
- LCH
- lch(7.88 17.34 310.3)
- CMYK
- cmyk(24% 56% 0% 84%)
浅色调 · 深色调 · 灰色调
浅色调
- 32263C
- 453A4F
- 5A5063
- 706778
- 867E8D
- 9D97A3
- B5B0B9
- CDCAD0
- E6E4E7
深色调
- 190E22
- 140A1C
- 0F0715
- 0A040F
- 060209
- 030105
- 010102
- 000001
- 000000
灰色调
- 281C31
- 31263A
- 3A3042
- 433B4B
- 4D4653
- 57515C
- 615D65
- 6B686E
- 757477
配色和谐
互补色 +180°
- 1F1229
Shot in the Dark
- 121D04
≈ Yuzu Soy
类似色 -30° +30°
- 1F1229
Shot in the Dark
- 14162E
≈ Lost in Sadness
- 260F20
≈ Inside
三角配色 +120° +240°
- 1F1229
Shot in the Dark
- 261400
≈ Cannon Black
- 001E1C
≈ Stellar Explorer
分裂互补色 +150° +210°
- 1F1229
Shot in the Dark
- 1E1900
≈ Noir Mystique
- 011F10
≈ Clock Chimes Thirteen
四角配色 +90° +180° +270°
- 1F1229
Shot in the Dark
- 2A1007
≈ Root Brew
- 121D04
≈ Yuzu Soy
- 001D25
≈ Oxford by Night
对比度与无障碍
Ag
AAA白底
WCAG 17.84:1 · APCA Lc 105
Ag
Fail黑底
WCAG 1.17:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 17.84:1 (AAA) · APCA Lc 105
Contrast pairs
代码片段
CSS
:root {
--shot-in-the-dark: #1f1229;
--shot-in-the-dark-rgb: 31 18 41;
--shot-in-the-dark-oklch: oklch(0.212 0.047 308.9);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(274 39% 12%);
border-color: oklch(0.212 0.047 308.9);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #1f1229;
--color-shot-in-the-dark-50: #f9f2ff;
--color-shot-in-the-dark-100: #ede4f4;
--color-shot-in-the-dark-200: #dbcfe3;
--color-shot-in-the-dark-300: #bfb1ca;
--color-shot-in-the-dark-400: #a697b4;
--color-shot-in-the-dark-500: #8f7e9e;
--color-shot-in-the-dark-600: #796b86;
--color-shot-in-the-dark-700: #61556b;
--color-shot-in-the-dark-800: #473e4f;
--color-shot-in-the-dark-900: #312b37;
--color-shot-in-the-dark-950: #1d1822;
}SCSS
$shot-in-the-dark: #1f1229;
$shot-in-the-dark-rgb: 31, 18, 41;
$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);
}