#172C7C#172C7C
#172C7C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.138 H 267.0°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).
Color values
| HEX | #172C7C |
|---|---|
| RGB | rgb(23, 44, 124) |
| HSL | hsl(228, 69%, 29%) |
| HSV | hsv(228, 81%, 49%) |
| CMYK | cmyk(81.5%, 64.5%, 0%, 51.4%) |
| CIE-LAB | lab(21.72, 23.39, -47.64) |
| CIE-LCH | lch(21.72, 53.08, 296.15°) |
| OKLab | oklab(33.42% -0.0073 -0.1378) |
| OKLCH | oklch(33.42% 0.138 267) |
| XYZ | xyz(4.8909, 3.4382, 19.4707) |
| Luminance | 0.0344 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.83
Marine
#042E60
ΔE00 6.04
Royal
#0C1793
ΔE00 7.26
Sapphire (survey)
#2138AB
ΔE00 7.37
Marine Blue
#01386A
ΔE00 7.42
Darkslateblue
#483D8B
ΔE00 8.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172C7C #7C6717
analogous
#175F7C #172C7C #35177C
triadic
#172C7C #7C172C #2C7C17
tetradic
#172C7C #7C175F #7C6717 #177C35
square
#172C7C #7C175F #7C6717 #177C35
split-complementary
#172C7C #7C3517 #5F7C17
monochromatic
#05091A #0D1A48 #172C7C #213EB0 #3456D9
Accessibility & contrast
On white
12.44
#172C7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#172C7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172C7C
12.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172C7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172C7C | 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)
#00397F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #172c7c; /* rgb */ color: rgb(23, 44, 124); /* oklch */ color: oklch(33.4% 0.138 267.0);
Tailwind
colors: {
custom: {
50: '#6764a3',
500: '#172c7c',
950: '#000000',
},
}SCSS
$custom: #172c7c; $custom-light: #6764a3; $custom-dark: #000000;
JSON
{
"hex": "#172c7c",
"rgb": {
"r": 23,
"g": 44,
"b": 124
},
"hsl": {
"h": 227.525,
"s": 68.707,
"l": 28.824
},
"oklch": {
"l": 0.33415,
"c": 0.138,
"h": 267
},
"luminance": 0.03439
}Semantic roles & 50–950 ramp
primary
#172C7C
secondary
#B1993E
accent
#C73CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F