最接近的命名颜色 · #181021
#181021
最接近的命名颜色: Shot in the Dark
#181021(rgb(24 16 33)、hsl(268 35% 10%)、oklch(0.192 0.035 305))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#181021
oklch(0.192 0.035 305)
颜色转换
- HEX
- #181021
- RGB
- rgb(24 16 33)
- HSL
- hsl(268 35% 10%)
- HWB
- hwb(268 6% 87%)
- OKLCH
- oklch(0.192 0.035 305)
- OKLab
- oklab(0.192 0.02 -0.029)
- CIE Lab
- lab(6.02 6.96 -10.15)
- LCH
- lch(6.02 12.3 304.5)
- CMYK
- cmyk(27% 52% 0% 87%)
浅色调 · 深色调 · 灰色调
浅色调
- 2B2334
- 3F3848
- 544E5C
- 6A6572
- 817D88
- 99959F
- B2AFB6
- CBC9CE
- E5E4E6
深色调
- 130C1B
- 0F0916
- 0A0610
- 07040B
- 040206
- 020103
- 010001
- 000000
- 000000
灰色调
- 211A2A
- 2B2433
- 342E3C
- 3E3945
- 49444E
- 535058
- 5E5B62
- 69676C
- 757476
配色和谐
互补色 +180°
- 181021
Shot in the Dark
- 111705
≈ Pinch of Pepper
类似色 -30° +30°
- 181021
Shot in the Dark
- 101324
≈ Corbeau
- 1E0E1B
≈ Shot in the Dark
三角配色 +120° +240°
- 181021
Shot in the Dark
- 1F1103
≈ Super Black
- 001916
≈ Black Stallion
分裂互补色 +150° +210°
- 181021
Shot in the Dark
- 191402
≈ Crowshead
- 06190D
≈ Pinch of Pepper
四角配色 +90° +180° +270°
- 181021
Shot in the Dark
- 220E09
≈ Severely Burnt Toast
- 111705
≈ Pinch of Pepper
- 00181E
≈ 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: #181021;
--shot-in-the-dark-rgb: 24 16 33;
--shot-in-the-dark-oklch: oklch(0.192 0.035 305);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(268 35% 10%);
border-color: oklch(0.192 0.035 305);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #181021;
--color-shot-in-the-dark-50: #f8f3fd;
--color-shot-in-the-dark-100: #ebe5f1;
--color-shot-in-the-dark-200: #d8d1e0;
--color-shot-in-the-dark-300: #bcb3c6;
--color-shot-in-the-dark-400: #a39ab0;
--color-shot-in-the-dark-500: #8b8199;
--color-shot-in-the-dark-600: #766d82;
--color-shot-in-the-dark-700: #5e5768;
--color-shot-in-the-dark-800: #45404d;
--color-shot-in-the-dark-900: #2f2c35;
--color-shot-in-the-dark-950: #1c1920;
}SCSS
$shot-in-the-dark: #181021;
$shot-in-the-dark-rgb: 24, 16, 33;
$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);
}