最接近的命名颜色 · #040160
#040160
最接近的命名颜色: Alone in the Dark
#040160(rgb(4 1 96)、hsl(242 98% 19%)、oklch(0.225 0.151 266.3))最接近命名颜色 Alone in the Dark。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#040160
oklch(0.225 0.151 266.3)
颜色转换
- HEX
- #040160
- RGB
- rgb(4 1 96)
- HSL
- hsl(242 98% 19%)
- HWB
- hwb(242 0% 62%)
- OKLCH
- oklch(0.225 0.151 266.3)
- OKLab
- oklab(0.225 -0.01 -0.15)
- CIE Lab
- lab(6.85 32.63 -53.84)
- LCH
- lch(6.85 62.96 301.2)
- CMYK
- cmyk(96% 99% 0% 62%)
浅色调 · 深色调 · 灰色调
浅色调
- 0F2371
- 243C81
- 3C5492
- 556BA2
- 6F83B2
- 8A9BC2
- A6B3D1
- C3CCE1
- E1E5F0
深色调
- 030152
- 020145
- 010038
- 01002C
- 000020
- 000015
- 00000A
- 000003
- 000000
灰色调
- 071765
- 122669
- 1E326D
- 2A3E71
- 384974
- 465477
- 545F7A
- 626A7C
- 71757E
配色和谐
互补色 +180°
- 040160
Alone in the Dark
- 251A00
≈ Cannon Black
类似色 -30° +30°
- 040160
Alone in the Dark
- 001F2F
≈ Cyanophobia
- 24004C
≈ Your Darkness
三角配色 +120° +240°
- 040160
Alone in the Dark
- 3C0003
≈ Dark Maroon
- 002306
≈ Rainforest Nights
分裂互补色 +150° +210°
- 040160
Alone in the Dark
- 2E1300
≈ Shadow Play
- 1B1E00
≈ Liquorice Root
四角配色 +90° +180° +270°
- 040160
Alone in the Dark
- 39001D
≈ Rhodophobia
- 251A00
≈ Cannon Black
- 00221B
≈ Stellar Explorer
对比度与无障碍
Ag
AAA白底
WCAG 17.82:1 · APCA Lc 103
Ag
Fail黑底
WCAG 1.17:1 · APCA Lc 0
最佳文字颜色: #FFFFFF
WCAG 17.82:1 (AAA) · APCA Lc 103
Contrast pairs
代码片段
CSS
:root {
--alone-in-the-dark: #040160;
--alone-in-the-dark-rgb: 4 1 96;
--alone-in-the-dark-oklch: oklch(0.225 0.151 266.3);
}
.element {
color: var(--alone-in-the-dark);
background-color: hsl(242 98% 19%);
border-color: oklch(0.225 0.151 266.3);
}Tailwind CSS v4
@theme {
--color-alone-in-the-dark: #040160;
--color-alone-in-the-dark-50: #e3f5ff;
--color-alone-in-the-dark-100: #d2e7ff;
--color-alone-in-the-dark-200: #b9d2ff;
--color-alone-in-the-dark-300: #97b4ff;
--color-alone-in-the-dark-400: #759af7;
--color-alone-in-the-dark-500: #577fe9;
--color-alone-in-the-dark-600: #4a6cc4;
--color-alone-in-the-dark-700: #3b569e;
--color-alone-in-the-dark-800: #273f76;
--color-alone-in-the-dark-900: #1a2c53;
--color-alone-in-the-dark-950: #0b1838;
}SCSS
$alone-in-the-dark: #040160;
$alone-in-the-dark-rgb: 4, 1, 96;
$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);
}