#17157F#17157F
#17157F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.167 H 270.9°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).
Color values
| HEX | #17157F |
|---|---|
| RGB | rgb(23, 21, 127) |
| HSL | hsl(241, 72%, 29%) |
| HSV | hsv(241, 83%, 50%) |
| CMYK | cmyk(81.9%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(16.75, 39.06, -57.74) |
| CIE-LCH | lch(16.75, 69.71, 304.08°) |
| OKLab | oklab(29.93% 0.0027 -0.1671) |
| OKLCH | oklch(29.93% 0.167 270.9) |
| XYZ | xyz(4.4510, 2.2503, 20.2743) |
| Luminance | 0.0225 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.76
Royal
#0C1793
ΔE00 2.90
Navy
#000080
ΔE00 3.61
Dark Royal Blue
#02066F
ΔE00 3.72
Darkblue
#00008B
ΔE00 3.73
Deep Blue
#040273
ΔE00 3.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#17157F #7D7F15
analogous
#15487F #17157F #4C157F
triadic
#17157F #7F1715 #157F17
tetradic
#17157F #7F1548 #7D7F15 #157F4C
square
#17157F #7F1548 #7D7F15 #157F4C
split-complementary
#17157F #7F4C15 #487F15
monochromatic
#05041A #0D0C4A #17157F #211EB4 #3531DD
Accessibility & contrast
On white
14.48
#17157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#17157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #17157F
14.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##17157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##17157F | 1.00 | 14.48 | 1.45 | 14.48 |
| #FFFFFF | 14.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #17157f; /* rgb */ color: rgb(23, 21, 127); /* oklch */ color: oklch(29.9% 0.167 270.9);
Tailwind
colors: {
custom: {
50: '#6a55a5',
500: '#17157f',
950: '#000000',
},
}SCSS
$custom: #17157f; $custom-light: #6a55a5; $custom-dark: #000000;
JSON
{
"hex": "#17157f",
"rgb": {
"r": 23,
"g": 21,
"b": 127
},
"hsl": {
"h": 241.132,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.29934,
"c": 0.16717,
"h": 270.9
},
"luminance": 0.02251
}Semantic roles & 50–950 ramp
primary
#17157F
secondary
#B2B43C
accent
#EE39EB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F