最接近的命名颜色 · #1B0F1F
#1B0F1F
最接近的命名颜色: Shot in the Dark
#1B0F1F(rgb(27 15 31)、hsl(285 35% 9%)、oklch(0.193 0.036 317.4))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#1B0F1F
oklch(0.193 0.036 317.4)
颜色转换
- HEX
- #1b0f1f
- RGB
- rgb(27 15 31)
- HSL
- hsl(285 35% 9%)
- HWB
- hwb(285 6% 88%)
- OKLCH
- oklch(0.193 0.036 317.4)
- OKLab
- oklab(0.193 0.026 -0.024)
- CIE Lab
- lab(6.05 8.58 -8.54)
- LCH
- lch(6.05 12.1 315.1)
- CMYK
- cmyk(13% 52% 0% 88%)
浅色调 · 深色调 · 灰色调
浅色调
- 2E2232
- 423746
- 574D5A
- 6D6470
- 847C86
- 9B959D
- B3AEB5
- CCC9CD
- E5E3E6
深色调
- 160B19
- 110814
- 0C050F
- 08030A
- 050206
- 020103
- 010001
- 000000
- 000000
灰色调
- 241928
- 2D2331
- 372E3A
- 413944
- 4B444D
- 554F57
- 605B61
- 6A676B
- 757376
配色和谐
互补色 +180°
- 1B0F1F
Shot in the Dark
- 0C1808
≈ Pinch of Pepper
类似色 -30° +30°
- 1B0F1F
Shot in the Dark
- 141224
≈ Corbeau
- 200D17
≈ Shot in the Dark
三角配色 +120° +240°
- 1B0F1F
Shot in the Dark
- 1D1202
≈ Super Black
- 00191A
≈ Black Stallion
分裂互补色 +150° +210°
- 1B0F1F
Shot in the Dark
- 161502
≈ Pinch of Pepper
- 021911
≈ Pinch of Pepper
四角配色 +90° +180° +270°
- 1B0F1F
Shot in the Dark
- 210F06
≈ Severely Burnt Toast
- 0C1808
≈ Pinch of Pepper
- 011721
≈ Creeping Death
对比度与无障碍
Ag
AAA白底
WCAG 18.50:1 · APCA Lc 105
Ag
Fail黑底
WCAG 1.13:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 18.50:1 (AAA) · APCA Lc 105
Contrast pairs
代码片段
CSS
:root {
--shot-in-the-dark: #1b0f1f;
--shot-in-the-dark-rgb: 27 15 31;
--shot-in-the-dark-oklch: oklch(0.193 0.036 317.4);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(285 35% 9%);
border-color: oklch(0.193 0.036 317.4);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #1b0f1f;
--color-shot-in-the-dark-50: #faf2fc;
--color-shot-in-the-dark-100: #ede4f0;
--color-shot-in-the-dark-200: #dbd0de;
--color-shot-in-the-dark-300: #c0b2c3;
--color-shot-in-the-dark-400: #a798ad;
--color-shot-in-the-dark-500: #907f96;
--color-shot-in-the-dark-600: #7a6c7f;
--color-shot-in-the-dark-700: #625666;
--color-shot-in-the-dark-800: #473f4b;
--color-shot-in-the-dark-900: #312b34;
--color-shot-in-the-dark-950: #1d1820;
}SCSS
$shot-in-the-dark: #1b0f1f;
$shot-in-the-dark-rgb: 27, 15, 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);
}