最接近的命名颜色 · #1E1422
#1E1422
最接近的命名颜色: Shot in the Dark
#1E1422(rgb(30 20 34)、hsl(283 26% 11%)、oklch(0.211 0.031 316.1))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#1E1422
oklch(0.211 0.031 316.1)
颜色转换
- HEX
- #1e1422
- RGB
- rgb(30 20 34)
- HSL
- hsl(283 26% 11%)
- HWB
- hwb(283 8% 87%)
- OKLCH
- oklch(0.211 0.031 316.1)
- OKLab
- oklab(0.211 0.022 -0.021)
- CIE Lab
- lab(8.02 7.82 -7.79)
- LCH
- lch(8.02 11.04 315.1)
- CMYK
- cmyk(12% 41% 0% 87%)
浅色调 · 深色调 · 灰色调
浅色调
- 312735
- 453C48
- 59515D
- 6F6872
- 857F88
- 9D979F
- B4B0B6
- CDCACE
- E6E4E6
深色调
- 19101C
- 130C16
- 0E0811
- 09050B
- 050307
- 030103
- 010101
- 000000
- 000000
灰色调
- 271D2B
- 302733
- 39313C
- 433C45
- 4C474F
- 565258
- 615D62
- 6B686C
- 757476
配色和谐
互补色 +180°
- 1E1422
Shot in the Dark
- 121C0D
≈ Pinch of Pepper
类似色 -30° +30°
- 1E1422
Shot in the Dark
- 171626
≈ Sambucus
- 23131B
≈ Bats Cloak
三角配色 +120° +240°
- 1E1422
Shot in the Dark
- 211607
≈ Noir Mystique
- 041D1D
≈ Black Stallion
分裂互补色 +150° +210°
- 1E1422
Shot in the Dark
- 1A1908
≈ Noir Mystique
- 091D15
≈ Pinch of Pepper
四角配色 +90° +180° +270°
- 1E1422
Shot in the Dark
- 24140C
≈ Used Oil
- 121C0D
≈ Pinch of Pepper
- 071B23
≈ Black Stallion
对比度与无障碍
Ag
AAA白底
WCAG 17.82:1 · APCA Lc 105
Ag
Fail黑底
WCAG 1.17:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 17.82:1 (AAA) · APCA Lc 105
Contrast pairs
代码片段
CSS
:root {
--shot-in-the-dark: #1e1422;
--shot-in-the-dark-rgb: 30 20 34;
--shot-in-the-dark-oklch: oklch(0.211 0.031 316.1);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(283 26% 11%);
border-color: oklch(0.211 0.031 316.1);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #1e1422;
--color-shot-in-the-dark-50: #f9f2fb;
--color-shot-in-the-dark-100: #ece5ef;
--color-shot-in-the-dark-200: #dad0dd;
--color-shot-in-the-dark-300: #beb3c2;
--color-shot-in-the-dark-400: #a699ab;
--color-shot-in-the-dark-500: #8e8094;
--color-shot-in-the-dark-600: #786d7d;
--color-shot-in-the-dark-700: #605764;
--color-shot-in-the-dark-800: #463f4a;
--color-shot-in-the-dark-900: #312c33;
--color-shot-in-the-dark-950: #1d191f;
}SCSS
$shot-in-the-dark: #1e1422;
$shot-in-the-dark-rgb: 30, 20, 34;
$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);
}