最接近的命名颜色 · #2A192D
#2A192D
最接近的命名颜色: Shot in the Dark
#2A192D(rgb(42 25 45)、hsl(291 29% 14%)、oklch(0.245 0.044 321.4))最接近命名颜色 Shot in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#2A192D
oklch(0.245 0.044 321.4)
颜色转换
- HEX
- #2a192d
- RGB
- rgb(42 25 45)
- HSL
- hsl(291 29% 14%)
- HWB
- hwb(291 10% 82%)
- OKLCH
- oklch(0.245 0.044 321.4)
- OKLab
- oklab(0.245 0.034 -0.027)
- CIE Lab
- lab(11.76 11.96 -10.02)
- LCH
- lch(11.76 15.6 320.1)
- CMYK
- cmyk(7% 44% 0% 82%)
浅色调 · 深色调 · 灰色调
浅色调
- 3C2C3F
- 504052
- 645666
- 786C7A
- 8D838F
- A39AA4
- B9B3BA
- D0CCD1
- E7E5E8
深色调
- 231426
- 1C101F
- 160B18
- 100711
- 0A040B
- 050206
- 020102
- 010001
- 000000
灰色调
- 322235
- 3A2C3D
- 433645
- 4B404D
- 534A55
- 5C545D
- 655F66
- 6E6A6F
- 777577
配色和谐
互补色 +180°
- 2A192D
Shot in the Dark
- 142611
≈ Deep Slate Olive
类似色 -30° +30°
- 2A192D
Shot in the Dark
- 211C34
≈ Black Howl
- 301723
≈ Black Cherry
三角配色 +120° +240°
- 2A192D
Shot in the Dark
- 2B1E05
≈ Brunneophobia
- 002629
≈ Teal Spill
分裂互补色 +150° +210°
- 2A192D
Shot in the Dark
- 212207
≈ Liquorice Root
- 04271E
≈ Deep Slate Green
四角配色 +90° +180° +270°
- 2A192D
Shot in the Dark
- 311A0B
≈ Brunneophobia
- 142611
≈ Deep Slate Olive
- 052432
≈ Midnight Dreams
对比度与无障碍
Ag
AAA白底
WCAG 16.46:1 · APCA Lc 103
Ag
Fail黑底
WCAG 1.27:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 16.46:1 (AAA) · APCA Lc 103
Contrast pairs
代码片段
CSS
:root {
--shot-in-the-dark: #2a192d;
--shot-in-the-dark-rgb: 42 25 45;
--shot-in-the-dark-oklch: oklch(0.245 0.044 321.4);
}
.element {
color: var(--shot-in-the-dark);
background-color: hsl(291 29% 14%);
border-color: oklch(0.245 0.044 321.4);
}Tailwind CSS v4
@theme {
--color-shot-in-the-dark: #2a192d;
--color-shot-in-the-dark-50: #fcf1fd;
--color-shot-in-the-dark-100: #efe3f0;
--color-shot-in-the-dark-200: #decedf;
--color-shot-in-the-dark-300: #c3b0c5;
--color-shot-in-the-dark-400: #ab96ae;
--color-shot-in-the-dark-500: #947d98;
--color-shot-in-the-dark-600: #7d6a81;
--color-shot-in-the-dark-700: #645567;
--color-shot-in-the-dark-800: #493e4c;
--color-shot-in-the-dark-900: #332a35;
--color-shot-in-the-dark-950: #1e1820;
}SCSS
$shot-in-the-dark: #2a192d;
$shot-in-the-dark-rgb: 42, 25, 45;
$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);
}