最接近的命名颜色 · #1B1428
#1B1428
最接近的命名颜色: Shot in the Dark
#1B1428(rgb(27 20 40)、hsl(261 33% 12%)、oklch(0.211 0.04 299.1))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#1B1428
oklch(0.211 0.04 299.1)
颜色转换
- HEX
- #1b1428
- RGB
- rgb(27 20 40)
- HSL
- hsl(261 33% 12%)
- HWB
- hwb(261 8% 84%)
- OKLCH
- oklch(0.211 0.04 299.1)
- OKLab
- oklab(0.211 0.019 -0.035)
- CIE Lab
- lab(7.89 7.86 -12.52)
- LCH
- lch(7.89 14.78 302.1)
- CMYK
- cmyk(33% 50% 0% 84%)
浅色调 · 深色调 · 灰色调
浅色调
- 2E273B
- 413C4E
- 565162
- 6C6877
- 837F8C
- 9B98A2
- B3B0B9
- CCCAD0
- E5E4E7
深色调
- 161021
- 110C1B
- 0C0815
- 08050F
- 050309
- 020104
- 010102
- 000001
- 000000
灰色调
- 241E30
- 2D2839
- 373241
- 403C4A
- 4A4753
- 55525B
- 5F5D64
- 6A696E
- 757477
配色和谐
互补色 +180°
- 1B1428
Shot in the Dark
- 161B05
≈ Pinch of Pepper
类似色 -30° +30°
- 1B1428
Shot in the Dark
- 11172B
≈ Sambucus
- 221121
≈ Inside
三角配色 +120° +240°
- 1B1428
Shot in the Dark
- 261305
≈ Severely Burnt Toast
- 001E19
≈ Stellar Explorer
分裂互补色 +150° +210°
- 1B1428
Shot in the Dark
- 201702
≈ Noir Mystique
- 0A1D0E
≈ Pinch of Pepper
四角配色 +90° +180° +270°
- 1B1428
Shot in the Dark
- 28110E
≈ Root Brew
- 161B05
≈ Pinch of Pepper
- 001D21
≈ Stellar Explorer
对比度与无障碍
Ag
AAA白底
WCAG 17.83:1 · APCA Lc 105
Ag
Fail黑底
WCAG 1.17:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 17.83:1 (AAA) · APCA Lc 105
Contrast pairs
代码片段
CSS
:root {
--shot-in-the-dark: #1b1428;
--shot-in-the-dark-rgb: 27 20 40;
--shot-in-the-dark-oklch: oklch(0.211 0.04 299.1);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(261 33% 12%);
border-color: oklch(0.211 0.04 299.1);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #1b1428;
--color-shot-in-the-dark-50: #f7f3ff;
--color-shot-in-the-dark-100: #eae5f3;
--color-shot-in-the-dark-200: #d7d1e3;
--color-shot-in-the-dark-300: #bbb3c9;
--color-shot-in-the-dark-400: #a19ab3;
--color-shot-in-the-dark-500: #89819d;
--color-shot-in-the-dark-600: #746d85;
--color-shot-in-the-dark-700: #5d576b;
--color-shot-in-the-dark-800: #44404f;
--color-shot-in-the-dark-900: #2f2c37;
--color-shot-in-the-dark-950: #1b1922;
}SCSS
$shot-in-the-dark: #1b1428;
$shot-in-the-dark-rgb: 27, 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);
}