#172B71#172B71
#172B71 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.2% C 0.123 H 266.9°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).
Color values
| HEX | #172B71 |
|---|---|
| RGB | rgb(23, 43, 113) |
| HSL | hsl(227, 66%, 27%) |
| HSV | hsv(227, 80%, 44%) |
| CMYK | cmyk(79.6%, 61.9%, 0%, 55.7%) |
| CIE-LAB | lab(20.45, 19.63, -42.69) |
| CIE-LCH | lch(20.45, 46.99, 294.69°) |
| OKLab | oklab(32.16% -0.0067 -0.1233) |
| OKLCH | oklch(32.16% 0.123 266.9) |
| XYZ | xyz(4.1968, 3.1017, 15.9971) |
| Luminance | 0.0310 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 4.78
Midnight Blue
#191970
ΔE00 5.97
Marine Blue
#01386A
ΔE00 6.89
Navy Blue
#1B2A4A
ΔE00 7.64
Darkish Blue
#014182
ΔE00 8.49
Royal
#0C1793
ΔE00 8.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172B71 #715D17
analogous
#175871 #172B71 #301771
triadic
#172B71 #71172B #2B7117
tetradic
#172B71 #711758 #715D17 #177130
square
#172B71 #711758 #715D17 #177130
split-complementary
#172B71 #713017 #587117
monochromatic
#050A19 #0D183E #172B71 #213EA4 #2E53D4
Accessibility & contrast
On white
12.96
#172B71 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#172B71 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172B71
12.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172B71 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172B71 | 1.00 | 12.96 | 1.62 | 12.96 |
| #FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#003D49
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #172b71; /* rgb */ color: rgb(23, 43, 113); /* oklch */ color: oklch(32.2% 0.123 266.9);
Tailwind
colors: {
custom: {
50: '#64649a',
500: '#172b71',
950: '#000000',
},
}SCSS
$custom: #172b71; $custom-light: #64649a; $custom-dark: #000000;
JSON
{
"hex": "#172b71",
"rgb": {
"r": 23,
"g": 43,
"b": 113
},
"hsl": {
"h": 226.667,
"s": 66.176,
"l": 26.667
},
"oklch": {
"l": 0.3216,
"c": 0.12349,
"h": 266.9
},
"luminance": 0.03102
}Semantic roles & 50–950 ramp
primary
#172B71
secondary
#A78F3D
accent
#C33FE9
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E