#172772#172772
#172772 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.130 H 268.3°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).
Color values
| HEX | #172772 |
|---|---|
| RGB | rgb(23, 39, 114) |
| HSL | hsl(229, 66%, 27%) |
| HSV | hsv(229, 80%, 45%) |
| CMYK | cmyk(79.8%, 65.8%, 0%, 55.3%) |
| CIE-LAB | lab(19.42, 22.89, -45.01) |
| CIE-LCH | lch(19.42, 50.49, 296.95°) |
| OKLab | oklab(31.43% -0.0038 -0.1301) |
| OKLCH | oklch(31.43% 0.13 268.3) |
| XYZ | xyz(4.1151, 2.8476, 16.2491) |
| Luminance | 0.0285 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.46
Marine
#042E60
ΔE00 6.02
Royal
#0C1793
ΔE00 7.33
Marine Blue
#01386A
ΔE00 8.28
Darkblue (survey)
#030764
ΔE00 8.35
Navy Blue
#1B2A4A
ΔE00 8.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172772 #726217
analogous
#175572 #172772 #351772
triadic
#172772 #721727 #277217
tetradic
#172772 #721755 #726217 #177235
square
#172772 #721755 #726217 #177235
split-complementary
#172772 #723517 #557217
monochromatic
#050919 #0D163F #172772 #2138A5 #2E4CD5
Accessibility & contrast
On white
13.38
#172772 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#172772 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172772
13.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172772 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172772 | 1.00 | 13.38 | 1.57 | 13.38 |
| #FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #172772; /* rgb */ color: rgb(23, 39, 114); /* oklch */ color: oklch(31.4% 0.130 268.3);
Tailwind
colors: {
custom: {
50: '#64619b',
500: '#172772',
950: '#000000',
},
}SCSS
$custom: #172772; $custom-light: #64619b; $custom-dark: #000000;
JSON
{
"hex": "#172772",
"rgb": {
"r": 23,
"g": 39,
"b": 114
},
"hsl": {
"h": 229.451,
"s": 66.423,
"l": 26.863
},
"oklch": {
"l": 0.31428,
"c": 0.13021,
"h": 268.3
},
"luminance": 0.02848
}Semantic roles & 50–950 ramp
primary
#172772
secondary
#A8953D
accent
#CB3EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E