最接近的命名颜色 · #1C1428
#1C1428
最接近的命名颜色: Shot in the Dark
#1C1428(rgb(28 20 40)、hsl(264 33% 12%)、oklch(0.212 0.04 301.5))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#1C1428
oklch(0.212 0.04 301.5)
颜色转换
- HEX
- #1c1428
- RGB
- rgb(28 20 40)
- HSL
- hsl(264 33% 12%)
- HWB
- hwb(264 8% 84%)
- OKLCH
- oklch(0.212 0.04 301.5)
- OKLab
- oklab(0.212 0.021 -0.034)
- CIE Lab
- lab(8.03 8.29 -12.3)
- LCH
- lch(8.03 14.83 304)
- CMYK
- cmyk(30% 50% 0% 84%)
浅色调 · 深色调 · 灰色调
浅色调
- 2F273B
- 423C4E
- 575162
- 6D6877
- 847F8C
- 9B98A2
- B3B0B9
- CCCAD0
- E5E4E7
深色调
- 171021
- 120C1B
- 0D0815
- 08050F
- 050309
- 020104
- 010102
- 000001
- 000000
灰色调
- 251E30
- 2E2839
- 373241
- 413C4A
- 4B4753
- 55525B
- 605D64
- 6A696D
- 757477
配色和谐
互补色 +180°
- 1C1428
Shot in the Dark
- 161B05
≈ Pinch of Pepper
类似色 -30° +30°
- 1C1428
Shot in the Dark
- 12172B
≈ Sambucus
- 231121
≈ Inside
三角配色 +120° +240°
- 1C1428
Shot in the Dark
- 261404
≈ Cannon Black
- 001E1A
≈ Stellar Explorer
分裂互补色 +150° +210°
- 1C1428
Shot in the Dark
- 1F1802
≈ Noir Mystique
- 091E0F
≈ Clock Chimes Thirteen
四角配色 +90° +180° +270°
- 1C1428
Shot in the Dark
- 28110D
≈ Root Brew
- 161B05
≈ Pinch of Pepper
- 001D22
≈ Stellar Explorer
对比度与无障碍
Ag
AAA白底
WCAG 17.79:1 · APCA Lc 105
Ag
Fail黑底
WCAG 1.18:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 17.79:1 (AAA) · APCA Lc 105
Contrast pairs
代码片段
CSS
:root {
--shot-in-the-dark: #1c1428;
--shot-in-the-dark-rgb: 28 20 40;
--shot-in-the-dark-oklch: oklch(0.212 0.04 301.5);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(264 33% 12%);
border-color: oklch(0.212 0.04 301.5);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #1c1428;
--color-shot-in-the-dark-50: #f7f3ff;
--color-shot-in-the-dark-100: #eae5f3;
--color-shot-in-the-dark-200: #d8d0e3;
--color-shot-in-the-dark-300: #bbb3c9;
--color-shot-in-the-dark-400: #a299b3;
--color-shot-in-the-dark-500: #8b809d;
--color-shot-in-the-dark-600: #756d85;
--color-shot-in-the-dark-700: #5e576a;
--color-shot-in-the-dark-800: #443f4e;
--color-shot-in-the-dark-900: #2f2c37;
--color-shot-in-the-dark-950: #1c1921;
}SCSS
$shot-in-the-dark: #1c1428;
$shot-in-the-dark-rgb: 28, 20, 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);
}