#172A80#172A80
#172A80 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.146 H 267.6°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).
Color values
| HEX | #172A80 |
|---|---|
| RGB | rgb(23, 42, 128) |
| HSL | hsl(229, 70%, 30%) |
| HSV | hsv(229, 82%, 50%) |
| CMYK | cmyk(82%, 67.2%, 0%, 49.8%) |
| CIE-LAB | lab(21.56, 26.38, -50.43) |
| CIE-LCH | lch(21.56, 56.91, 297.61°) |
| OKLab | oklab(33.42% -0.0062 -0.146) |
| OKLCH | oklch(33.42% 0.146 267.6) |
| XYZ | xyz(5.0762, 3.3960, 20.8058) |
| Luminance | 0.0340 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.21
Royal
#0C1793
ΔE00 6.17
Sapphire (survey)
#2138AB
ΔE00 7.00
Marine
#042E60
ΔE00 7.03
Darkslateblue
#483D8B
ΔE00 8.03
Marine Blue
#01386A
ΔE00 8.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172A80 #806D17
analogous
#175F80 #172A80 #391780
triadic
#172A80 #80172A #2A8017
tetradic
#172A80 #80175F #806D17 #178039
square
#172A80 #80175F #806D17 #178039
split-complementary
#172A80 #803917 #5F8017
monochromatic
#05091A #0E194C #172A80 #203BB4 #3654DB
Accessibility & contrast
On white
12.50
#172A80 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#172A80 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172A80
12.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172A80 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172A80 | 1.00 | 12.50 | 1.68 | 12.50 |
| #FFFFFF | 12.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #172a80; /* rgb */ color: rgb(23, 42, 128); /* oklch */ color: oklch(33.4% 0.146 267.6);
Tailwind
colors: {
custom: {
50: '#6863a6',
500: '#172a80',
950: '#000000',
},
}SCSS
$custom: #172a80; $custom-light: #6863a6; $custom-dark: #000000;
JSON
{
"hex": "#172a80",
"rgb": {
"r": 23,
"g": 42,
"b": 128
},
"hsl": {
"h": 229.143,
"s": 69.536,
"l": 29.608
},
"oklch": {
"l": 0.33417,
"c": 0.14611,
"h": 267.6
},
"luminance": 0.03397
}Semantic roles & 50–950 ramp
primary
#172A80
secondary
#B49F3E
accent
#CC3BEC
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F