#17158C#17158C
#17158C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.183 H 269.9°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).
Color values
| HEX | #17158C |
|---|---|
| RGB | rgb(23, 21, 140) |
| HSL | hsl(241, 74%, 32%) |
| HSV | hsv(241, 85%, 55%) |
| CMYK | cmyk(83.6%, 85%, 0%, 45.1%) |
| CIE-LAB | lab(18.41, 43.32, -63.18) |
| CIE-LCH | lch(18.41, 76.61, 304.44°) |
| OKLab | oklab(31.57% -0.0003 -0.1829) |
| OKLCH | oklch(31.57% 0.183 269.9) |
| XYZ | xyz(5.3535, 2.6113, 25.0277) |
| Luminance | 0.0261 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.15
Darkblue
#00008B
ΔE00 3.23
Cobalt Blue
#030AA7
ΔE00 3.78
Navy
#000080
ΔE00 3.92
Royal Blue (survey)
#0504AA
ΔE00 4.30
Midnight Blue
#191970
ΔE00 4.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#17158C #8A8C15
analogous
#154F8C #17158C #53158C
triadic
#17158C #8C1715 #158C17
tetradic
#17158C #8C154F #8A8C15 #158C53
square
#17158C #8C154F #8A8C15 #158C53
split-complementary
#17158C #8C5315 #4F8C15
monochromatic
#060522 #0E0D57 #17158C #201DC1 #3D3AE1
Accessibility & contrast
On white
13.79
#17158C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#17158C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #17158C
13.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##17158C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##17158C | 1.00 | 13.79 | 1.52 | 13.79 |
| #FFFFFF | 13.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #17158c; /* rgb */ color: rgb(23, 21, 140); /* oklch */ color: oklch(31.6% 0.183 269.9);
Tailwind
colors: {
custom: {
50: '#6d56af',
500: '#17158c',
950: '#000000',
},
}SCSS
$custom: #17158c; $custom-light: #6d56af; $custom-dark: #000000;
JSON
{
"hex": "#17158c",
"rgb": {
"r": 23,
"g": 21,
"b": 140
},
"hsl": {
"h": 241.008,
"s": 73.913,
"l": 31.569
},
"oklch": {
"l": 0.31567,
"c": 0.18288,
"h": 269.9
},
"luminance": 0.02612
}Semantic roles & 50–950 ramp
primary
#17158C
secondary
#BEC03D
accent
#F137ED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880