#17158F#17158F
#17158F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.186 H 269.7°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).
Color values
| HEX | #17158F |
|---|---|
| RGB | rgb(23, 21, 143) |
| HSL | hsl(241, 74%, 32%) |
| HSV | hsv(241, 85%, 56%) |
| CMYK | cmyk(83.9%, 85.3%, 0%, 43.9%) |
| CIE-LAB | lab(18.80, 44.28, -64.40) |
| CIE-LCH | lch(18.80, 78.16, 304.51°) |
| OKLab | oklab(31.95% -0.0009 -0.1864) |
| OKLCH | oklch(31.95% 0.186 269.7) |
| XYZ | xyz(5.5778, 2.7010, 26.2086) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 0.86
Darkblue
#00008B
ΔE00 3.28
Cobalt Blue
#030AA7
ΔE00 3.38
Royal Blue (survey)
#0504AA
ΔE00 3.92
Navy
#000080
ΔE00 4.12
Indigo (survey)
#380282
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#17158F #8D8F15
analogous
#15508F #17158F #54158F
triadic
#17158F #8F1715 #158F17
tetradic
#17158F #8F1550 #8D8F15 #158F54
square
#17158F #8F1550 #8D8F15 #158F54
split-complementary
#17158F #8F5415 #508F15
monochromatic
#060524 #0E0D5A #17158F #201DC4 #3F3CE2
Accessibility & contrast
On white
13.63
#17158F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#17158F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #17158F
13.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##17158F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##17158F | 1.00 | 13.63 | 1.54 | 13.63 |
| #FFFFFF | 13.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00278D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #17158f; /* rgb */ color: rgb(23, 21, 143); /* oklch */ color: oklch(31.9% 0.186 269.7);
Tailwind
colors: {
custom: {
50: '#6e57b1',
500: '#17158f',
950: '#000000',
},
}SCSS
$custom: #17158f; $custom-light: #6e57b1; $custom-dark: #000000;
JSON
{
"hex": "#17158f",
"rgb": {
"r": 23,
"g": 21,
"b": 143
},
"hsl": {
"h": 240.984,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.31947,
"c": 0.18642,
"h": 269.7
},
"luminance": 0.02702
}Semantic roles & 50–950 ramp
primary
#17158F
secondary
#C0C23E
accent
#F137EE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880