#172A78#172A78
#172A78 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.6% C 0.135 H 267.5°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).
Color values
| HEX | #172A78 |
|---|---|
| RGB | rgb(23, 42, 120) |
| HSL | hsl(228, 68%, 28%) |
| HSV | hsv(228, 81%, 47%) |
| CMYK | cmyk(80.8%, 65%, 0%, 52.9%) |
| CIE-LAB | lab(20.80, 23.18, -46.60) |
| CIE-LCH | lch(20.80, 52.05, 296.45°) |
| OKLab | oklab(32.62% -0.006 -0.1348) |
| OKLCH | oklch(32.62% 0.135 267.5) |
| XYZ | xyz(4.5703, 3.1936, 18.1412) |
| Luminance | 0.0319 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.23
Marine
#042E60
ΔE00 5.96
Royal
#0C1793
ΔE00 7.22
Marine Blue
#01386A
ΔE00 7.71
Sapphire (survey)
#2138AB
ΔE00 8.08
Darkslateblue
#483D8B
ΔE00 8.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172A78 #786517
analogous
#175A78 #172A78 #341778
triadic
#172A78 #78172A #2A7817
tetradic
#172A78 #78175A #786517 #177834
square
#172A78 #78175A #786517 #177834
split-complementary
#172A78 #783417 #5A7817
monochromatic
#05091A #0D1845 #172A78 #213CAB #3252D8
Accessibility & contrast
On white
12.81
#172A78 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#172A78 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172A78
12.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172A78 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172A78 | 1.00 | 12.81 | 1.64 | 12.81 |
| #FFFFFF | 12.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #172a78; /* rgb */ color: rgb(23, 42, 120); /* oklch */ color: oklch(32.6% 0.135 267.5);
Tailwind
colors: {
custom: {
50: '#6663a0',
500: '#172a78',
950: '#000000',
},
}SCSS
$custom: #172a78; $custom-light: #6663a0; $custom-dark: #000000;
JSON
{
"hex": "#172a78",
"rgb": {
"r": 23,
"g": 42,
"b": 120
},
"hsl": {
"h": 228.247,
"s": 67.832,
"l": 28.039
},
"oklch": {
"l": 0.32622,
"c": 0.1349,
"h": 267.5
},
"luminance": 0.03194
}Semantic roles & 50–950 ramp
primary
#172A78
secondary
#AD973E
accent
#C93DEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E