最接近的命名颜色 · #24121F
#24121F
最接近的命名颜色: Shot in the Dark
#24121F(rgb(36 18 31)、hsl(317 33% 11%)、oklch(0.213 0.037 337.9))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#24121F
oklch(0.213 0.037 337.9)
颜色转换
- HEX
- #24121f
- RGB
- rgb(36 18 31)
- HSL
- hsl(317 33% 11%)
- HWB
- hwb(317 7% 86%)
- OKLCH
- oklch(0.213 0.037 337.9)
- OKLab
- oklab(0.213 0.034 -0.014)
- CIE Lab
- lab(8.21 11.46 -5.12)
- LCH
- lch(8.21 12.55 335.9)
- CMYK
- cmyk(0% 50% 14% 86%)
浅色调 · 深色调 · 灰色调
浅色调
- 372532
- 4B3A45
- 5F505A
- 746670
- 8A7E86
- A0979D
- B7B0B5
- CFC9CD
- E7E4E6
深色调
- 1E0E19
- 180A14
- 12070F
- 0C040A
- 070206
- 040103
- 020101
- 000000
- 000000
灰色调
- 2D1C28
- 352631
- 3E303A
- 473B43
- 50464D
- 5A5157
- 635C61
- 6D686B
- 767475
配色和谐
互补色 +180°
- 24121F
Shot in the Dark
- 081E12
≈ Clock Chimes Thirteen
类似色 -30° +30°
- 24121F
Shot in the Dark
- 1E1426
≈ Inside
- 271116
≈ Italian Roast
三角配色 +120° +240°
- 24121F
Shot in the Dark
- 1E1904
≈ Noir Mystique
- 011D24
≈ Stellar Explorer
分裂互补色 +150° +210°
- 24121F
Shot in the Dark
- 141C09
≈ Pinch of Pepper
- 001E1C
≈ Stellar Explorer
四角配色 +90° +180° +270°
- 24121F
Shot in the Dark
- 241505
≈ Cannon Black
- 081E12
≈ Clock Chimes Thirteen
- 0A1A29
≈ 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: #24121f;
--shot-in-the-dark-rgb: 36 18 31;
--shot-in-the-dark-oklch: oklch(0.213 0.037 337.9);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(317 33% 11%);
border-color: oklch(0.213 0.037 337.9);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #24121f;
--color-shot-in-the-dark-50: #fdf1f8;
--color-shot-in-the-dark-100: #f1e3ec;
--color-shot-in-the-dark-200: #e0ced9;
--color-shot-in-the-dark-300: #c5b0bd;
--color-shot-in-the-dark-400: #ae96a6;
--color-shot-in-the-dark-500: #977d8f;
--color-shot-in-the-dark-600: #806a79;
--color-shot-in-the-dark-700: #665561;
--color-shot-in-the-dark-800: #4b3e47;
--color-shot-in-the-dark-900: #342a31;
--color-shot-in-the-dark-950: #1f181d;
}SCSS
$shot-in-the-dark: #24121f;
$shot-in-the-dark-rgb: 36, 18, 31;
$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);
}