#172D7C#172D7C
#172D7C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.137 H 266.7°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).
Color values
| HEX | #172D7C |
|---|---|
| RGB | rgb(23, 45, 124) |
| HSL | hsl(227, 69%, 29%) |
| HSV | hsv(227, 81%, 49%) |
| CMYK | cmyk(81.5%, 63.7%, 0%, 51.4%) |
| CIE-LAB | lab(21.99, 22.69, -47.20) |
| CIE-LCH | lch(21.99, 52.37, 295.67°) |
| OKLab | oklab(33.62% -0.0079 -0.1365) |
| OKLCH | oklch(33.62% 0.137 266.7) |
| XYZ | xyz(4.9286, 3.5136, 19.4833) |
| Luminance | 0.0351 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.84
Midnight Blue
#191970
ΔE00 6.16
Marine Blue
#01386A
ΔE00 7.12
Sapphire (survey)
#2138AB
ΔE00 7.31
Royal
#0C1793
ΔE00 7.56
Darkslateblue
#483D8B
ΔE00 7.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172D7C #7C6617
analogous
#17607C #172D7C #34177C
triadic
#172D7C #7C172D #2D7C17
tetradic
#172D7C #7C1760 #7C6617 #177C34
square
#172D7C #7C1760 #7C6617 #177C34
split-complementary
#172D7C #7C3417 #607C17
monochromatic
#05091A #0D1A48 #172D7C #2140B0 #3458D9
Accessibility & contrast
On white
12.33
#172D7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#172D7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172D7C
12.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172D7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172D7C | 1.00 | 12.33 | 1.70 | 12.33 |
| #FFFFFF | 12.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #172d7c; /* rgb */ color: rgb(23, 45, 124); /* oklch */ color: oklch(33.6% 0.137 266.7);
Tailwind
colors: {
custom: {
50: '#6665a3',
500: '#172d7c',
950: '#000000',
},
}SCSS
$custom: #172d7c; $custom-light: #6665a3; $custom-dark: #000000;
JSON
{
"hex": "#172d7c",
"rgb": {
"r": 23,
"g": 45,
"b": 124
},
"hsl": {
"h": 226.931,
"s": 68.707,
"l": 28.824
},
"oklch": {
"l": 0.33617,
"c": 0.13671,
"h": 266.7
},
"luminance": 0.03514
}Semantic roles & 50–950 ramp
primary
#172D7C
secondary
#B1983E
accent
#C53CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F