#172188#172188
#172188 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.167 H 269.0°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).
Color values
| HEX | #172188 |
|---|---|
| RGB | rgb(23, 33, 136) |
| HSL | hsl(235, 71%, 31%) |
| HSV | hsv(235, 83%, 53%) |
| CMYK | cmyk(83.1%, 75.7%, 0%, 46.7%) |
| CIE-LAB | lab(20.23, 35.33, -57.66) |
| CIE-LCH | lch(20.23, 67.63, 301.50°) |
| OKLab | oklab(32.7% -0.0028 -0.1671) |
| OKLCH | oklch(32.7% 0.167 269) |
| XYZ | xyz(5.3396, 3.0468, 23.5945) |
| Luminance | 0.0305 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.91
Midnight Blue
#191970
ΔE00 3.99
Cobalt Blue
#030AA7
ΔE00 5.85
Darkblue
#00008B
ΔE00 6.03
Navy
#000080
ΔE00 6.39
Royal Blue (survey)
#0504AA
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172188 #887E17
analogous
#175988 #172188 #451788
triadic
#172188 #881721 #218817
tetradic
#172188 #881759 #887E17 #178845
square
#172188 #881759 #887E17 #178845
split-complementary
#172188 #884517 #598817
monochromatic
#05081F #0E1454 #172188 #202EBC #3B4ADE
Accessibility & contrast
On white
13.05
#172188 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#172188 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172188
13.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172188 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172188 | 1.00 | 13.05 | 1.61 | 13.05 |
| #FFFFFF | 13.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002B86
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #172188; /* rgb */ color: rgb(23, 33, 136); /* oklch */ color: oklch(32.7% 0.167 269.0);
Tailwind
colors: {
custom: {
50: '#6b5dac',
500: '#172188',
950: '#000000',
},
}SCSS
$custom: #172188; $custom-light: #6b5dac; $custom-dark: #000000;
JSON
{
"hex": "#172188",
"rgb": {
"r": 23,
"g": 33,
"b": 136
},
"hsl": {
"h": 234.69,
"s": 71.069,
"l": 31.176
},
"oklch": {
"l": 0.32702,
"c": 0.16709,
"h": 269
},
"luminance": 0.03047
}Semantic roles & 50–950 ramp
primary
#172188
secondary
#BCB13F
accent
#DE3AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F