#172C77#172C77
#172C77 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.131 H 266.8°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).
Color values
| HEX | #172C77 |
|---|---|
| RGB | rgb(23, 44, 119) |
| HSL | hsl(227, 68%, 28%) |
| HSV | hsv(227, 81%, 47%) |
| CMYK | cmyk(80.7%, 63%, 0%, 53.3%) |
| CIE-LAB | lab(21.26, 21.36, -45.21) |
| CIE-LCH | lch(21.26, 50.00, 295.29°) |
| OKLab | oklab(32.93% -0.0073 -0.1307) |
| OKLCH | oklch(32.93% 0.131 266.8) |
| XYZ | xyz(4.5826, 3.3149, 17.8475) |
| Luminance | 0.0331 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.34
Midnight Blue
#191970
ΔE00 5.97
Marine Blue
#01386A
ΔE00 7.00
Royal
#0C1793
ΔE00 7.94
Sapphire (survey)
#2138AB
ΔE00 8.10
Darkish Blue
#014182
ΔE00 8.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172C77 #776217
analogous
#175C77 #172C77 #321777
triadic
#172C77 #77172C #2C7717
tetradic
#172C77 #77175C #776217 #177732
square
#172C77 #77175C #776217 #177732
split-complementary
#172C77 #773217 #5C7717
monochromatic
#05091A #0D1944 #172C77 #213FAA #3156D7
Accessibility & contrast
On white
12.63
#172C77 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#172C77 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172C77
12.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172C77 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172C77 | 1.00 | 12.63 | 1.66 | 12.63 |
| #FFFFFF | 12.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #172c77; /* rgb */ color: rgb(23, 44, 119); /* oklch */ color: oklch(32.9% 0.131 266.8);
Tailwind
colors: {
custom: {
50: '#65649f',
500: '#172c77',
950: '#000000',
},
}SCSS
$custom: #172c77; $custom-light: #65649f; $custom-dark: #000000;
JSON
{
"hex": "#172c77",
"rgb": {
"r": 23,
"g": 44,
"b": 119
},
"hsl": {
"h": 226.875,
"s": 67.606,
"l": 27.843
},
"oklch": {
"l": 0.32935,
"c": 0.13087,
"h": 266.8
},
"luminance": 0.03315
}Semantic roles & 50–950 ramp
primary
#172C77
secondary
#AC943E
accent
#C53DEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E