#172D79#172D79
#172D79 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.132 H 266.5°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).
Color values
| HEX | #172D79 |
|---|---|
| RGB | rgb(23, 45, 121) |
| HSL | hsl(227, 68%, 28%) |
| HSV | hsv(227, 81%, 47%) |
| CMYK | cmyk(81%, 62.8%, 0%, 52.5%) |
| CIE-LAB | lab(21.72, 21.47, -45.73) |
| CIE-LCH | lch(21.72, 50.52, 295.15°) |
| OKLab | oklab(33.33% -0.008 -0.1322) |
| OKLCH | oklch(33.33% 0.132 266.5) |
| XYZ | xyz(4.7417, 3.4389, 18.4993) |
| Luminance | 0.0344 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.40
Midnight Blue
#191970
ΔE00 6.25
Marine Blue
#01386A
ΔE00 6.85
Sapphire (survey)
#2138AB
ΔE00 7.75
Darkish Blue
#014182
ΔE00 7.91
Royal
#0C1793
ΔE00 7.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172D79 #796317
analogous
#175E79 #172D79 #321779
triadic
#172D79 #79172D #2D7917
tetradic
#172D79 #79175E #796317 #177932
square
#172D79 #79175E #796317 #177932
split-complementary
#172D79 #793217 #5E7917
monochromatic
#050A1A #0D1A46 #172D79 #2140AC #3258D8
Accessibility & contrast
On white
12.44
#172D79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#172D79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172D79
12.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172D79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172D79 | 1.00 | 12.44 | 1.69 | 12.44 |
| #FFFFFF | 12.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #172d79; /* rgb */ color: rgb(23, 45, 121); /* oklch */ color: oklch(33.3% 0.132 266.5);
Tailwind
colors: {
custom: {
50: '#6665a0',
500: '#172d79',
950: '#000000',
},
}SCSS
$custom: #172d79; $custom-light: #6665a0; $custom-dark: #000000;
JSON
{
"hex": "#172d79",
"rgb": {
"r": 23,
"g": 45,
"b": 121
},
"hsl": {
"h": 226.531,
"s": 68.056,
"l": 28.235
},
"oklch": {
"l": 0.33332,
"c": 0.13243,
"h": 266.5
},
"luminance": 0.03439
}Semantic roles & 50–950 ramp
primary
#172D79
secondary
#AE953E
accent
#C43DEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050F
muted
#7A7A7E