#172D77#172D77
#172D77 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.1% C 0.130 H 266.5°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).
Color values
| HEX | #172D77 |
|---|---|
| RGB | rgb(23, 45, 119) |
| HSL | hsl(226, 68%, 28%) |
| HSV | hsv(226, 81%, 47%) |
| CMYK | cmyk(80.7%, 62.2%, 0%, 53.3%) |
| CIE-LAB | lab(21.54, 20.65, -44.75) |
| CIE-LCH | lch(21.54, 49.29, 294.77°) |
| OKLab | oklab(33.14% -0.008 -0.1293) |
| OKLCH | oklch(33.14% 0.13 266.5) |
| XYZ | xyz(4.6203, 3.3903, 17.8601) |
| Luminance | 0.0339 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.12
Midnight Blue
#191970
ΔE00 6.33
Marine Blue
#01386A
ΔE00 6.68
Darkish Blue
#014182
ΔE00 7.87
Sapphire (survey)
#2138AB
ΔE00 8.05
Royal
#0C1793
ΔE00 8.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172D77 #776117
analogous
#175D77 #172D77 #311777
triadic
#172D77 #77172D #2D7717
tetradic
#172D77 #77175D #776117 #177731
square
#172D77 #77175D #776117 #177731
split-complementary
#172D77 #773117 #5D7717
monochromatic
#050A1A #0D1A44 #172D77 #2140AA #3157D7
Accessibility & contrast
On white
12.51
#172D77 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#172D77 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172D77
12.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172D77 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172D77 | 1.00 | 12.51 | 1.68 | 12.51 |
| #FFFFFF | 12.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #172d77; /* rgb */ color: rgb(23, 45, 119); /* oklch */ color: oklch(33.1% 0.130 266.5);
Tailwind
colors: {
custom: {
50: '#65659f',
500: '#172d77',
950: '#000000',
},
}SCSS
$custom: #172d77; $custom-light: #65659f; $custom-dark: #000000;
JSON
{
"hex": "#172d77",
"rgb": {
"r": 23,
"g": 45,
"b": 119
},
"hsl": {
"h": 226.25,
"s": 67.606,
"l": 27.843
},
"oklch": {
"l": 0.33143,
"c": 0.12956,
"h": 266.5
},
"luminance": 0.03391
}Semantic roles & 50–950 ramp
primary
#172D77
secondary
#AC933E
accent
#C33DEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E