最接近的命名颜色 · #040061
#040061
最接近的命名颜色: Alone in the Dark
#040061(rgb(4 0 97)、hsl(242 100% 19%)、oklch(0.225 0.153 266.2))最接近命名颜色 Alone in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#040061
oklch(0.225 0.153 266.2)
颜色转换
- HEX
- #040061
- RGB
- rgb(4 0 97)
- HSL
- hsl(242 100% 19%)
- HWB
- hwb(242 0% 62%)
- OKLCH
- oklch(0.225 0.153 266.2)
- OKLab
- oklab(0.225 -0.01 -0.152)
- CIE Lab
- lab(6.79 33.5 -54.6)
- LCH
- lch(6.79 64.06 301.5)
- CMYK
- cmyk(96% 100% 0% 62%)
浅色调 · 深色调 · 灰色调
浅色调
- 0E2372
- 243C82
- 3B5493
- 546BA3
- 6F83B2
- 8A9BC2
- A6B3D2
- C3CCE1
- E1E5F0
深色调
- 030053
- 020046
- 010039
- 01002D
- 000021
- 000015
- 00000B
- 000003
- 000000
灰色调
- 071665
- 11256A
- 1D326E
- 2A3E71
- 384975
- 455478
- 545F7A
- 626A7D
- 71757E
配色和谐
互补色 +180°
- 040061
Alone in the Dark
- 251A00
≈ Cannon Black
类似色 -30° +30°
- 040061
Alone in the Dark
- 001F2F
≈ Cyanophobia
- 24004C
≈ Your Darkness
三角配色 +120° +240°
- 040061
Alone in the Dark
- 3C0003
≈ Dark Maroon
- 002406
≈ Tides of Darkness
分裂互补色 +150° +210°
- 040061
Alone in the Dark
- 2E1400
≈ Shadow Play
- 1B1E00
≈ Liquorice Root
四角配色 +90° +180° +270°
- 040061
Alone in the Dark
- 39001D
≈ Rhodophobia
- 251A00
≈ Cannon Black
- 00221B
≈ Stellar Explorer
对比度与无障碍
Ag
AAA白底
WCAG 17.83:1 · APCA Lc 103
Ag
Fail黑底
WCAG 1.17:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 17.83:1 (AAA) · APCA Lc 103
Contrast pairs
代码片段
CSS
:root {
--alone-in-the-dark: #040061;
--alone-in-the-dark-rgb: 4 0 97;
--alone-in-the-dark-oklch: oklch(0.225 0.153 266.2);
}
.element {
color: var(--alone-in-the-dark);
background-color: hsl(242 100% 19%);
border-color: oklch(0.225 0.153 266.2);
}Tailwind CSS v4
@theme {
--color-alone-in-the-dark: #040061;
--color-alone-in-the-dark-50: #e2f5ff;
--color-alone-in-the-dark-100: #d2e7ff;
--color-alone-in-the-dark-200: #b8d2ff;
--color-alone-in-the-dark-300: #96b4ff;
--color-alone-in-the-dark-400: #749af8;
--color-alone-in-the-dark-500: #577fea;
--color-alone-in-the-dark-600: #4a6cc5;
--color-alone-in-the-dark-700: #3a569f;
--color-alone-in-the-dark-800: #273f77;
--color-alone-in-the-dark-900: #1a2c54;
--color-alone-in-the-dark-950: #0b1838;
}SCSS
$alone-in-the-dark: #040061;
$alone-in-the-dark-rgb: 4, 0, 97;
$alone-in-the-dark-light: mix(#fff, $alone-in-the-dark, 20%);
$alone-in-the-dark-dark: mix(#000, $alone-in-the-dark, 20%);
.element {
color: $alone-in-the-dark;
box-shadow: 0 0 0 2px rgba($alone-in-the-dark, 0.35);
}