#172A7C#172A7C
#172A7C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.141 H 267.5°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).
Color values
| HEX | #172A7C |
|---|---|
| RGB | rgb(23, 42, 124) |
| HSL | hsl(229, 69%, 29%) |
| HSV | hsv(229, 81%, 49%) |
| CMYK | cmyk(81.5%, 66.1%, 0%, 51.4%) |
| CIE-LAB | lab(21.18, 24.79, -48.53) |
| CIE-LCH | lch(21.18, 54.49, 297.06°) |
| OKLab | oklab(33.02% -0.0061 -0.1404) |
| OKLCH | oklch(33.02% 0.141 267.5) |
| XYZ | xyz(4.8181, 3.2928, 19.4465) |
| Luminance | 0.0329 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.17
Marine
#042E60
ΔE00 6.49
Royal
#0C1793
ΔE00 6.67
Sapphire (survey)
#2138AB
ΔE00 7.53
Marine Blue
#01386A
ΔE00 8.03
Darkslateblue
#483D8B
ΔE00 8.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172A7C #7C6917
analogous
#175D7C #172A7C #37177C
triadic
#172A7C #7C172A #2A7C17
tetradic
#172A7C #7C175D #7C6917 #177C37
square
#172A7C #7C175D #7C6917 #177C37
split-complementary
#172A7C #7C3717 #5D7C17
monochromatic
#05091A #0D1948 #172A7C #213BB0 #3453D9
Accessibility & contrast
On white
12.66
#172A7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#172A7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172A7C
12.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172A7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172A7C | 1.00 | 12.66 | 1.66 | 12.66 |
| #FFFFFF | 12.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #172a7c; /* rgb */ color: rgb(23, 42, 124); /* oklch */ color: oklch(33.0% 0.141 267.5);
Tailwind
colors: {
custom: {
50: '#6763a3',
500: '#172a7c',
950: '#000000',
},
}SCSS
$custom: #172a7c; $custom-light: #6763a3; $custom-dark: #000000;
JSON
{
"hex": "#172a7c",
"rgb": {
"r": 23,
"g": 42,
"b": 124
},
"hsl": {
"h": 228.713,
"s": 68.707,
"l": 28.824
},
"oklch": {
"l": 0.33016,
"c": 0.14055,
"h": 267.5
},
"luminance": 0.03293
}Semantic roles & 50–950 ramp
primary
#172A7C
secondary
#B19B3E
accent
#CB3CEC
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F