最接近的命名颜色 · #1D1423
#1D1423
最接近的命名颜色: Shot in the Dark
#1D1423(rgb(29 20 35)、hsl(276 27% 11%)、oklch(0.21 0.032 311.2))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#1D1423
oklch(0.21 0.032 311.2)
颜色转换
- HEX
- #1d1423
- RGB
- rgb(29 20 35)
- HSL
- hsl(276 27% 11%)
- HWB
- hwb(276 8% 86%)
- OKLCH
- oklch(0.21 0.032 311.2)
- OKLab
- oklab(0.21 0.021 -0.024)
- CIE Lab
- lab(7.92 7.57 -8.71)
- LCH
- lch(7.92 11.54 311)
- CMYK
- cmyk(17% 43% 0% 86%)
浅色调 · 深色调 · 灰色调
浅色调
- 302736
- 443C49
- 58515E
- 6E6873
- 857F89
- 9C979F
- B4B0B6
- CCCACE
- E5E4E6
深色调
- 18101D
- 130C17
- 0E0811
- 09050C
- 050307
- 030104
- 010101
- 000000
- 000000
灰色调
- 261D2C
- 2F2734
- 38313D
- 423C46
- 4C474F
- 565259
- 605D62
- 6B686C
- 757476
配色和谐
互补色 +180°
- 1D1423
Shot in the Dark
- 131B0C
≈ Pinch of Pepper
类似色 -30° +30°
- 1D1423
Shot in the Dark
- 161627
≈ Sambucus
- 22121D
≈ Inside
三角配色 +120° +240°
- 1D1423
Shot in the Dark
- 211607
≈ Noir Mystique
- 041D1C
≈ Black Stallion
分裂互补色 +150° +210°
- 1D1423
Shot in the Dark
- 1B1907
≈ Noir Mystique
- 091D14
≈ Pinch of Pepper
四角配色 +90° +180° +270°
- 1D1423
Shot in the Dark
- 25130D
≈ Bighorn Sheep
- 131B0C
≈ Pinch of Pepper
- 051C23
≈ Black Stallion
对比度与无障碍
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: #1d1423;
--shot-in-the-dark-rgb: 29 20 35;
--shot-in-the-dark-oklch: oklch(0.21 0.032 311.2);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(276 27% 11%);
border-color: oklch(0.21 0.032 311.2);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #1d1423;
--color-shot-in-the-dark-50: #f8f3fc;
--color-shot-in-the-dark-100: #ece5f0;
--color-shot-in-the-dark-200: #d9d1de;
--color-shot-in-the-dark-300: #bdb3c3;
--color-shot-in-the-dark-400: #a599ad;
--color-shot-in-the-dark-500: #8d8196;
--color-shot-in-the-dark-600: #776d7f;
--color-shot-in-the-dark-700: #5f5766;
--color-shot-in-the-dark-800: #46404b;
--color-shot-in-the-dark-900: #302c34;
--color-shot-in-the-dark-950: #1c191f;
}SCSS
$shot-in-the-dark: #1d1423;
$shot-in-the-dark-rgb: 29, 20, 35;
$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);
}