#172F81#172F81
#172F81 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.141 H 266.3°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).
Color values
| HEX | #172F81 |
|---|---|
| RGB | rgb(23, 47, 129) |
| HSL | hsl(226, 70%, 30%) |
| HSV | hsv(226, 82%, 51%) |
| CMYK | cmyk(82.2%, 63.6%, 0%, 49.4%) |
| CIE-LAB | lab(23.00, 23.30, -48.71) |
| CIE-LCH | lch(23.00, 54.00, 295.56°) |
| OKLab | oklab(34.5% -0.0092 -0.1409) |
| OKLCH | oklch(34.5% 0.141 266.3) |
| XYZ | xyz(5.3309, 3.7995, 21.2170) |
| Luminance | 0.0380 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 6.20
Sapphire (survey)
#2138AB
ΔE00 6.49
Midnight Blue
#191970
ΔE00 6.78
Marine Blue
#01386A
ΔE00 7.01
Darkish Blue
#014182
ΔE00 7.49
Royal
#0C1793
ΔE00 7.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172F81 #816917
analogous
#176481 #172F81 #341781
triadic
#172F81 #81172F #2F8117
tetradic
#172F81 #811764 #816917 #178134
square
#172F81 #811764 #816917 #178134
split-complementary
#172F81 #813417 #648117
monochromatic
#05091A #0E1C4D #172F81 #2042B5 #375CDB
Accessibility & contrast
On white
11.93
#172F81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#172F81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172F81
11.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172F81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172F81 | 1.00 | 11.93 | 1.76 | 11.93 |
| #FFFFFF | 11.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00327F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #172f81; /* rgb */ color: rgb(23, 47, 129); /* oklch */ color: oklch(34.5% 0.141 266.3);
Tailwind
colors: {
custom: {
50: '#6867a6',
500: '#172f81',
950: '#000000',
},
}SCSS
$custom: #172f81; $custom-light: #6867a6; $custom-dark: #000000;
JSON
{
"hex": "#172f81",
"rgb": {
"r": 23,
"g": 47,
"b": 129
},
"hsl": {
"h": 226.415,
"s": 69.737,
"l": 29.804
},
"oklch": {
"l": 0.34504,
"c": 0.1412,
"h": 266.3
},
"luminance": 0.038
}Semantic roles & 50–950 ramp
primary
#172F81
secondary
#B59A3E
accent
#C43BED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F