#172A8F#172A8F
#172A8F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.166 H 267.5°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).
Color values
| HEX | #172A8F |
|---|---|
| RGB | rgb(23, 42, 143) |
| HSL | hsl(231, 72%, 33%) |
| HSV | hsv(231, 84%, 56%) |
| CMYK | cmyk(83.9%, 70.6%, 0%, 43.9%) |
| CIE-LAB | lab(23.07, 32.19, -57.35) |
| CIE-LCH | lch(23.07, 65.76, 299.31°) |
| OKLab | oklab(34.97% -0.0072 -0.1662) |
| OKLCH | oklch(34.97% 0.166 267.5) |
| XYZ | xyz(6.1375, 3.8205, 26.3952) |
| Luminance | 0.0382 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 4.82
Sapphire (survey)
#2138AB
ΔE00 5.27
Midnight Blue
#191970
ΔE00 6.10
Cobalt Blue
#030AA7
ΔE00 7.16
Indigo Blue
#3A18B1
ΔE00 7.61
Royal Blue (survey)
#0504AA
ΔE00 7.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172A8F #8F7C17
analogous
#17668F #172A8F #40178F
triadic
#172A8F #8F172A #2A8F17
tetradic
#172A8F #8F1766 #8F7C17 #178F40
square
#172A8F #8F1766 #8F7C17 #178F40
split-complementary
#172A8F #8F4017 #668F17
monochromatic
#060B26 #0F1B5A #172A8F #1F39C4 #4059E0
Accessibility & contrast
On white
11.90
#172A8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#172A8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172A8F
11.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172A8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172A8F | 1.00 | 11.90 | 1.76 | 11.90 |
| #FFFFFF | 11.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #172a8f; /* rgb */ color: rgb(23, 42, 143); /* oklch */ color: oklch(35.0% 0.166 267.5);
Tailwind
colors: {
custom: {
50: '#6c63b1',
500: '#172a8f',
950: '#000000',
},
}SCSS
$custom: #172a8f; $custom-light: #6c63b1; $custom-dark: #000000;
JSON
{
"hex": "#172a8f",
"rgb": {
"r": 23,
"g": 42,
"b": 143
},
"hsl": {
"h": 230.5,
"s": 72.289,
"l": 32.549
},
"oklch": {
"l": 0.34971,
"c": 0.16633,
"h": 267.5
},
"luminance": 0.03821
}Semantic roles & 50–950 ramp
primary
#172A8F
secondary
#C1AD41
accent
#D239EF
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980