#170A2E#170A2E
#170A2E is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.9% C 0.069 H 295.7°. Best body text is #FFFFFF at 18.76:1 contrast (WCAG AA passes).
Color values
| HEX | #170A2E |
|---|---|
| RGB | rgb(23, 10, 46) |
| HSL | hsl(262, 64%, 11%) |
| HSV | hsv(262, 78%, 18%) |
| CMYK | cmyk(50%, 78.3%, 0%, 82%) |
| CIE-LAB | lab(5.39, 15.70, -21.08) |
| CIE-LCH | lch(5.39, 26.28, 306.68°) |
| OKLab | oklab(18.88% 0.0298 -0.0618) |
| OKLCH | oklch(18.88% 0.069 295.7) |
| XYZ | xyz(0.9549, 0.5965, 2.6491) |
| Luminance | 0.0060 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight
#03012D
ΔE00 5.17
Dark Navy Blue
#00022E
ΔE00 5.95
Midnight Blue (survey)
#020035
ΔE00 6.09
Very Dark Blue
#000133
ΔE00 6.18
Dark Navy
#000435
ΔE00 6.26
Midnight Purple
#280137
ΔE00 6.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#170A2E #212E0A
analogous
#0A0F2E #170A2E #290A2E
triadic
#170A2E #2E170A #0A2E17
tetradic
#170A2E #2E0A0F #212E0A #0A2E29
square
#170A2E #2E0A0F #212E0A #0A2E29
split-complementary
#170A2E #2E290A #0F2E0A
monochromatic
#0D0519 #0D0519 #170A2E #301560 #492093
Accessibility & contrast
On white
18.76
#170A2E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.12
#170A2E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #170A2E
18.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##170A2E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##170A2E | 1.00 | 18.76 | 1.12 | 18.76 |
| #FFFFFF | 18.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 18.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00122F
Deuteranopia (green-blind)
#00112D
Tritanopia (blue-blind)
#11121A
Achromatopsia (no color)
#121212
Design tokens & code
CSS
--color: #170a2e; /* rgb */ color: rgb(23, 10, 46); /* oklch */ color: oklch(18.9% 0.069 295.7);
Tailwind
colors: {
custom: {
50: '#564a67',
500: '#170a2e',
950: '#000000',
},
}SCSS
$custom: #170a2e; $custom-light: #564a67; $custom-dark: #000000;
JSON
{
"hex": "#170a2e",
"rgb": {
"r": 23,
"g": 10,
"b": 46
},
"hsl": {
"h": 261.667,
"s": 64.286,
"l": 10.98
},
"oklch": {
"l": 0.1888,
"c": 0.06865,
"h": 295.7
},
"luminance": 0.00596
}Semantic roles & 50–950 ramp
primary
#170A2E
secondary
#536B29
accent
#E741AB
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A