#172C7E#172C7E
#172C7E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.141 H 267.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).
Color values
| HEX | #172C7E |
|---|---|
| RGB | rgb(23, 44, 126) |
| HSL | hsl(228, 69%, 29%) |
| HSV | hsv(228, 82%, 49%) |
| CMYK | cmyk(81.7%, 65.1%, 0%, 50.6%) |
| CIE-LAB | lab(21.91, 24.19, -48.61) |
| CIE-LCH | lch(21.91, 54.29, 296.46°) |
| OKLab | oklab(33.61% -0.0073 -0.1406) |
| OKLCH | oklch(33.61% 0.141 267) |
| XYZ | xyz(5.0186, 3.4893, 20.1436) |
| Luminance | 0.0349 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.81
Marine
#042E60
ΔE00 6.33
Royal
#0C1793
ΔE00 7.01
Sapphire (survey)
#2138AB
ΔE00 7.09
Marine Blue
#01386A
ΔE00 7.60
Darkslateblue
#483D8B
ΔE00 7.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172C7E #7E6917
analogous
#17607E #172C7E #36177E
triadic
#172C7E #7E172C #2C7E17
tetradic
#172C7E #7E1760 #7E6917 #177E36
square
#172C7E #7E1760 #7E6917 #177E36
split-complementary
#172C7E #7E3617 #607E17
monochromatic
#05091A #0E1A4A #172C7E #203EB2 #3557DA
Accessibility & contrast
On white
12.37
#172C7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#172C7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172C7E
12.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172C7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172C7E | 1.00 | 12.37 | 1.70 | 12.37 |
| #FFFFFF | 12.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #172c7e; /* rgb */ color: rgb(23, 44, 126); /* oklch */ color: oklch(33.6% 0.141 267.0);
Tailwind
colors: {
custom: {
50: '#6764a4',
500: '#172c7e',
950: '#000000',
},
}SCSS
$custom: #172c7e; $custom-light: #6764a4; $custom-dark: #000000;
JSON
{
"hex": "#172c7e",
"rgb": {
"r": 23,
"g": 44,
"b": 126
},
"hsl": {
"h": 227.767,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.33609,
"c": 0.14082,
"h": 267
},
"luminance": 0.0349
}Semantic roles & 50–950 ramp
primary
#172C7E
secondary
#B39B3E
accent
#C83CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F