#172B7E#172B7E
#172B7E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.142 H 267.3°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).
Color values
| HEX | #172B7E |
|---|---|
| RGB | rgb(23, 43, 126) |
| HSL | hsl(228, 69%, 29%) |
| HSV | hsv(228, 82%, 49%) |
| CMYK | cmyk(81.7%, 65.9%, 0%, 50.6%) |
| CIE-LAB | lab(21.64, 24.89, -49.05) |
| CIE-LCH | lch(21.64, 55.00, 296.91°) |
| OKLab | oklab(33.41% -0.0067 -0.1419) |
| OKLCH | oklch(33.41% 0.142 267.3) |
| XYZ | xyz(4.9818, 3.4157, 20.1314) |
| Luminance | 0.0342 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.49
Marine
#042E60
ΔE00 6.54
Royal
#0C1793
ΔE00 6.71
Sapphire (survey)
#2138AB
ΔE00 7.17
Marine Blue
#01386A
ΔE00 7.89
Darkslateblue
#483D8B
ΔE00 8.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172B7E #7E6A17
analogous
#175F7E #172B7E #37177E
triadic
#172B7E #7E172B #2B7E17
tetradic
#172B7E #7E175F #7E6A17 #177E37
square
#172B7E #7E175F #7E6A17 #177E37
split-complementary
#172B7E #7E3717 #5F7E17
monochromatic
#05091A #0E194A #172B7E #203DB2 #3555DA
Accessibility & contrast
On white
12.48
#172B7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#172B7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172B7E
12.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172B7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172B7E | 1.00 | 12.48 | 1.68 | 12.48 |
| #FFFFFF | 12.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #172b7e; /* rgb */ color: rgb(23, 43, 126); /* oklch */ color: oklch(33.4% 0.142 267.3);
Tailwind
colors: {
custom: {
50: '#6764a4',
500: '#172b7e',
950: '#000000',
},
}SCSS
$custom: #172b7e; $custom-light: #6764a4; $custom-dark: #000000;
JSON
{
"hex": "#172b7e",
"rgb": {
"r": 23,
"g": 43,
"b": 126
},
"hsl": {
"h": 228.35,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.33411,
"c": 0.14209,
"h": 267.3
},
"luminance": 0.03416
}Semantic roles & 50–950 ramp
primary
#172B7E
secondary
#B39C3E
accent
#CA3CEC
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F