#172972#172972
#172972 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.128 H 267.7°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).
Color values
| HEX | #172972 |
|---|---|
| RGB | rgb(23, 41, 114) |
| HSL | hsl(228, 66%, 27%) |
| HSV | hsv(228, 80%, 45%) |
| CMYK | cmyk(79.8%, 64%, 0%, 55.3%) |
| CIE-LAB | lab(19.97, 21.46, -44.11) |
| CIE-LCH | lch(19.97, 49.06, 295.95°) |
| OKLab | oklab(31.84% -0.0052 -0.1275) |
| OKLCH | oklch(31.84% 0.128 267.7) |
| XYZ | xyz(4.1825, 2.9825, 16.2716) |
| Luminance | 0.0298 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.17
Marine
#042E60
ΔE00 5.45
Marine Blue
#01386A
ΔE00 7.62
Royal
#0C1793
ΔE00 7.84
Navy Blue
#1B2A4A
ΔE00 8.05
Darkslateblue
#483D8B
ΔE00 8.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172972 #726017
analogous
#175772 #172972 #331772
triadic
#172972 #721729 #297217
tetradic
#172972 #721757 #726017 #177233
square
#172972 #721757 #726017 #177233
split-complementary
#172972 #723317 #577217
monochromatic
#050919 #0D173F #172972 #213BA5 #2E4FD5
Accessibility & contrast
On white
13.15
#172972 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#172972 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172972
13.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172972 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172972 | 1.00 | 13.15 | 1.60 | 13.15 |
| #FFFFFF | 13.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #172972; /* rgb */ color: rgb(23, 41, 114); /* oklch */ color: oklch(31.8% 0.128 267.7);
Tailwind
colors: {
custom: {
50: '#64629b',
500: '#172972',
950: '#000000',
},
}SCSS
$custom: #172972; $custom-light: #64629b; $custom-dark: #000000;
JSON
{
"hex": "#172972",
"rgb": {
"r": 23,
"g": 41,
"b": 114
},
"hsl": {
"h": 228.132,
"s": 66.423,
"l": 26.863
},
"oklch": {
"l": 0.31836,
"c": 0.1276,
"h": 267.7
},
"luminance": 0.02983
}Semantic roles & 50–950 ramp
primary
#172972
secondary
#A8933D
accent
#C83EE9
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E