#172973#172973
#172973 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.9% C 0.129 H 267.7°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).
Color values
| HEX | #172973 |
|---|---|
| RGB | rgb(23, 41, 115) |
| HSL | hsl(228, 67%, 27%) |
| HSV | hsv(228, 80%, 45%) |
| CMYK | cmyk(80%, 64.3%, 0%, 54.9%) |
| CIE-LAB | lab(20.07, 21.87, -44.60) |
| CIE-LCH | lch(20.07, 49.68, 296.12°) |
| OKLab | oklab(31.93% -0.0052 -0.1289) |
| OKLCH | oklch(31.93% 0.129 267.7) |
| XYZ | xyz(4.2397, 3.0054, 16.5730) |
| Luminance | 0.0301 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.11
Marine
#042E60
ΔE00 5.57
Marine Blue
#01386A
ΔE00 7.68
Royal
#0C1793
ΔE00 7.69
Navy Blue
#1B2A4A
ΔE00 8.21
Darkslateblue
#483D8B
ΔE00 8.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172973 #736117
analogous
#175773 #172973 #331773
triadic
#172973 #731729 #297317
tetradic
#172973 #731757 #736117 #177333
square
#172973 #731757 #736117 #177333
split-complementary
#172973 #733317 #577317
monochromatic
#05091A #0D1740 #172973 #213BA6 #2F50D5
Accessibility & contrast
On white
13.12
#172973 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#172973 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172973
13.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172973 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172973 | 1.00 | 13.12 | 1.60 | 13.12 |
| #FFFFFF | 13.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003575
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #172973; /* rgb */ color: rgb(23, 41, 115); /* oklch */ color: oklch(31.9% 0.129 267.7);
Tailwind
colors: {
custom: {
50: '#64629c',
500: '#172973',
950: '#000000',
},
}SCSS
$custom: #172973; $custom-light: #64629c; $custom-dark: #000000;
JSON
{
"hex": "#172973",
"rgb": {
"r": 23,
"g": 41,
"b": 115
},
"hsl": {
"h": 228.261,
"s": 66.667,
"l": 27.059
},
"oklch": {
"l": 0.31932,
"c": 0.12904,
"h": 267.7
},
"luminance": 0.03006
}Semantic roles & 50–950 ramp
primary
#172973
secondary
#A9943D
accent
#C83EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E