#170F7D#170F7D
#170F7D is a dark, vivid blue. Relative luminance 0.020; OKLCH L 29.0% C 0.169 H 271.6°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).
Color values
| HEX | #170F7D |
|---|---|
| RGB | rgb(23, 15, 125) |
| HSL | hsl(244, 79%, 27%) |
| HSV | hsv(244, 88%, 49%) |
| CMYK | cmyk(81.6%, 88%, 0%, 51%) |
| CIE-LAB | lab(15.51, 41.30, -58.53) |
| CIE-LCH | lch(15.51, 71.63, 305.21°) |
| OKLab | oklab(29% 0.0046 -0.1693) |
| OKLCH | oklch(29% 0.169 271.6) |
| XYZ | xyz(4.2246, 2.0040, 19.5622) |
| Luminance | 0.0200 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy
#000080
ΔE00 2.55
Deep Blue
#040273
ΔE00 2.80
Dark Royal Blue
#02066F
ΔE00 2.83
Darkblue
#00008B
ΔE00 2.96
Midnight Blue
#191970
ΔE00 3.31
Royal
#0C1793
ΔE00 3.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#170F7D #757D0F
analogous
#0F3E7D #170F7D #4E0F7D
triadic
#170F7D #7D170F #0F7D17
tetradic
#170F7D #7D0F3E #757D0F #0F7D4E
square
#170F7D #7D0F3E #757D0F #0F7D4E
split-complementary
#170F7D #7D4E0F #3E7D0F
monochromatic
#05031B #0D0846 #170F7D #2116B4 #3022E4
Accessibility & contrast
On white
14.99
#170F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.40
#170F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #170F7D
14.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##170F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##170F7D | 1.00 | 14.99 | 1.40 | 14.99 |
| #FFFFFF | 14.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C80
Deuteranopia (green-blind)
#00217B
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #170f7d; /* rgb */ color: rgb(23, 15, 125); /* oklch */ color: oklch(29.0% 0.169 271.6);
Tailwind
colors: {
custom: {
50: '#6a52a4',
500: '#170f7d',
950: '#000000',
},
}SCSS
$custom: #170f7d; $custom-light: #6a52a4; $custom-dark: #000000;
JSON
{
"hex": "#170f7d",
"rgb": {
"r": 23,
"g": 15,
"b": 125
},
"hsl": {
"h": 244.364,
"s": 78.571,
"l": 27.451
},
"oklch": {
"l": 0.29002,
"c": 0.16937,
"h": 271.6
},
"luminance": 0.02004
}Semantic roles & 50–950 ramp
primary
#170F7D
secondary
#AAB434
accent
#F533E7
background
#F6F4FA
surface
#ECE7F4
border
#C7C3CE
text
#08020F
muted
#7A787F