#172C7F#172C7F
#172C7F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.142 H 267.0°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).
Color values
| HEX | #172C7F |
|---|---|
| RGB | rgb(23, 44, 127) |
| HSL | hsl(228, 69%, 29%) |
| HSV | hsv(228, 82%, 50%) |
| CMYK | cmyk(81.9%, 65.4%, 0%, 50.2%) |
| CIE-LAB | lab(22.00, 24.59, -49.09) |
| CIE-LCH | lch(22.00, 54.90, 296.61°) |
| OKLab | oklab(33.71% -0.0073 -0.142) |
| OKLCH | oklch(33.71% 0.142 267) |
| XYZ | xyz(5.0835, 3.5152, 20.4851) |
| Luminance | 0.0352 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.81
Marine
#042E60
ΔE00 6.47
Royal
#0C1793
ΔE00 6.89
Sapphire (survey)
#2138AB
ΔE00 6.95
Marine Blue
#01386A
ΔE00 7.69
Darkslateblue
#483D8B
ΔE00 7.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172C7F #7F6A17
analogous
#17607F #172C7F #36177F
triadic
#172C7F #7F172C #2C7F17
tetradic
#172C7F #7F1760 #7F6A17 #177F36
square
#172C7F #7F1760 #7F6A17 #177F36
split-complementary
#172C7F #7F3617 #607F17
monochromatic
#05091A #0E1A4B #172C7F #203EB3 #3657DB
Accessibility & contrast
On white
12.33
#172C7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#172C7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172C7F
12.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172C7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172C7F | 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)
#003A82
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #172c7f; /* rgb */ color: rgb(23, 44, 127); /* oklch */ color: oklch(33.7% 0.142 267.0);
Tailwind
colors: {
custom: {
50: '#6764a5',
500: '#172c7f',
950: '#000000',
},
}SCSS
$custom: #172c7f; $custom-light: #6764a5; $custom-dark: #000000;
JSON
{
"hex": "#172c7f",
"rgb": {
"r": 23,
"g": 44,
"b": 127
},
"hsl": {
"h": 227.885,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.33708,
"c": 0.14222,
"h": 267
},
"luminance": 0.03516
}Semantic roles & 50–950 ramp
primary
#172C7F
secondary
#B49C3E
accent
#C93CEC
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F