#172C85#172C85
#172C85 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.151 H 267.1°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).
Color values
| HEX | #172C85 |
|---|---|
| RGB | rgb(23, 44, 133) |
| HSL | hsl(229, 71%, 31%) |
| HSV | hsv(229, 83%, 52%) |
| CMYK | cmyk(82.7%, 66.9%, 0%, 47.8%) |
| CIE-LAB | lab(22.57, 26.98, -51.93) |
| CIE-LCH | lch(22.57, 58.52, 297.45°) |
| OKLab | oklab(34.3% -0.0075 -0.1503) |
| OKLCH | oklch(34.3% 0.151 267.1) |
| XYZ | xyz(5.4862, 3.6763, 22.6062) |
| Luminance | 0.0368 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.93
Sapphire (survey)
#2138AB
ΔE00 6.15
Royal
#0C1793
ΔE00 6.22
Marine
#042E60
ΔE00 7.31
Darkslateblue
#483D8B
ΔE00 7.72
Blueberry
#464196
ΔE00 7.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172C85 #857017
analogous
#176385 #172C85 #391785
triadic
#172C85 #85172C #2C8517
tetradic
#172C85 #851763 #857017 #178539
square
#172C85 #851763 #857017 #178539
split-complementary
#172C85 #853917 #638517
monochromatic
#05091D #0E1B51 #172C85 #203DB9 #3A59DD
Accessibility & contrast
On white
12.10
#172C85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#172C85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172C85
12.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172C85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172C85 | 1.00 | 12.10 | 1.74 | 12.10 |
| #FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #172c85; /* rgb */ color: rgb(23, 44, 133); /* oklch */ color: oklch(34.3% 0.151 267.1);
Tailwind
colors: {
custom: {
50: '#6965a9',
500: '#172c85',
950: '#000000',
},
}SCSS
$custom: #172c85; $custom-light: #6965a9; $custom-dark: #000000;
JSON
{
"hex": "#172c85",
"rgb": {
"r": 23,
"g": 44,
"b": 133
},
"hsl": {
"h": 228.545,
"s": 70.513,
"l": 30.588
},
"oklch": {
"l": 0.34304,
"c": 0.15053,
"h": 267.1
},
"luminance": 0.03677
}Semantic roles & 50–950 ramp
primary
#172C85
secondary
#B9A23F
accent
#CB3BED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070510
muted
#7A7A7F