#171F90#171F90
#171F90 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.179 H 268.9°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).
Color values
| HEX | #171F90 |
|---|---|
| RGB | rgb(23, 31, 144) |
| HSL | hsl(236, 72%, 33%) |
| HSV | hsv(236, 84%, 56%) |
| CMYK | cmyk(84%, 78.5%, 0%, 43.5%) |
| CIE-LAB | lab(20.73, 39.37, -61.83) |
| CIE-LCH | lch(20.73, 73.30, 302.49°) |
| OKLab | oklab(33.33% -0.0034 -0.1791) |
| OKLCH | oklch(33.33% 0.179 268.9) |
| XYZ | xyz(5.8756, 3.1750, 26.6833) |
| Luminance | 0.0318 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.83
Cobalt Blue
#030AA7
ΔE00 4.54
Midnight Blue
#191970
ΔE00 4.94
Royal Blue (survey)
#0504AA
ΔE00 5.16
Darkblue
#00008B
ΔE00 5.38
Ultramarine
#2000B1
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171F90 #908817
analogous
#175B90 #171F90 #4B1790
triadic
#171F90 #90171F #1F9017
tetradic
#171F90 #90175B #908817 #17904B
square
#171F90 #90175B #908817 #17904B
split-complementary
#171F90 #904B17 #5B9017
monochromatic
#060826 #0F145B #171F90 #1F2AC5 #414BE1
Accessibility & contrast
On white
12.84
#171F90 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#171F90 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171F90
12.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171F90 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171F90 | 1.00 | 12.84 | 1.64 | 12.84 |
| #FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#002C8E
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #171f90; /* rgb */ color: rgb(23, 31, 144); /* oklch */ color: oklch(33.3% 0.179 268.9);
Tailwind
colors: {
custom: {
50: '#6e5cb2',
500: '#171f90',
950: '#000000',
},
}SCSS
$custom: #171f90; $custom-light: #6e5cb2; $custom-dark: #000000;
JSON
{
"hex": "#171f90",
"rgb": {
"r": 23,
"g": 31,
"b": 144
},
"hsl": {
"h": 236.033,
"s": 72.455,
"l": 32.745
},
"oklch": {
"l": 0.33329,
"c": 0.17917,
"h": 268.9
},
"luminance": 0.03176
}Semantic roles & 50–950 ramp
primary
#171F90
secondary
#C1B942
accent
#E339EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980