#17157E#17157E
#17157E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.166 H 271.0°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).
Color values
| HEX | #17157E |
|---|---|
| RGB | rgb(23, 21, 126) |
| HSL | hsl(241, 71%, 29%) |
| HSV | hsv(241, 83%, 49%) |
| CMYK | cmyk(81.7%, 83.3%, 0%, 50.6%) |
| CIE-LAB | lab(16.62, 38.72, -57.31) |
| CIE-LCH | lch(16.62, 69.17, 304.04°) |
| OKLab | oklab(29.81% 0.003 -0.1659) |
| OKLCH | oklch(29.81% 0.166 271) |
| XYZ | xyz(4.3861, 2.2244, 19.9328) |
| Luminance | 0.0222 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.62
Royal
#0C1793
ΔE00 3.04
Dark Royal Blue
#02066F
ΔE00 3.63
Navy
#000080
ΔE00 3.63
Darkblue
#00008B
ΔE00 3.81
Deep Blue
#040273
ΔE00 3.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#17157E #7C7E15
analogous
#15487E #17157E #4C157E
triadic
#17157E #7E1715 #157E17
tetradic
#17157E #7E1548 #7C7E15 #157E4C
square
#17157E #7E1548 #7C7E15 #157E4C
split-complementary
#17157E #7E4C15 #487E15
monochromatic
#05041A #0D0C4A #17157E #211EB2 #3431DD
Accessibility & contrast
On white
14.53
#17157E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#17157E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #17157E
14.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##17157E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##17157E | 1.00 | 14.53 | 1.45 | 14.53 |
| #FFFFFF | 14.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #17157e; /* rgb */ color: rgb(23, 21, 126); /* oklch */ color: oklch(29.8% 0.166 271.0);
Tailwind
colors: {
custom: {
50: '#6a55a5',
500: '#17157e',
950: '#000000',
},
}SCSS
$custom: #17157e; $custom-light: #6a55a5; $custom-dark: #000000;
JSON
{
"hex": "#17157e",
"rgb": {
"r": 23,
"g": 21,
"b": 126
},
"hsl": {
"h": 241.143,
"s": 71.429,
"l": 28.824
},
"oklch": {
"l": 0.2981,
"c": 0.16594,
"h": 271
},
"luminance": 0.02225
}Semantic roles & 50–950 ramp
primary
#17157E
secondary
#B1B33C
accent
#EE3AEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F