#172B8E#172B8E
#172B8E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.164 H 267.4°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).
Color values
| HEX | #172B8E |
|---|---|
| RGB | rgb(23, 43, 142) |
| HSL | hsl(230, 72%, 32%) |
| HSV | hsv(230, 84%, 56%) |
| CMYK | cmyk(83.8%, 69.7%, 0%, 44.3%) |
| CIE-LAB | lab(23.21, 31.15, -56.49) |
| CIE-LCH | lch(23.21, 64.51, 298.88°) |
| OKLab | oklab(35.04% -0.0075 -0.1637) |
| OKLCH | oklch(35.04% 0.164 267.4) |
| XYZ | xyz(6.0980, 3.8622, 26.0100) |
| Luminance | 0.0386 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 5.18
Sapphire (survey)
#2138AB
ΔE00 5.21
Midnight Blue
#191970
ΔE00 6.22
Cobalt Blue
#030AA7
ΔE00 7.53
Blueberry
#464196
ΔE00 7.76
Darkslateblue
#483D8B
ΔE00 7.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172B8E #8E7A17
analogous
#17678E #172B8E #3F178E
triadic
#172B8E #8E172B #2B8E17
tetradic
#172B8E #8E1767 #8E7A17 #178E3F
square
#172B8E #8E1767 #8E7A17 #178E3F
split-complementary
#172B8E #8E3F17 #678E17
monochromatic
#060B25 #0E1B59 #172B8E #203BC3 #3F5AE0
Accessibility & contrast
On white
11.85
#172B8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#172B8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172B8E
11.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172B8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172B8E | 1.00 | 11.85 | 1.77 | 11.85 |
| #FFFFFF | 11.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #172b8e; /* rgb */ color: rgb(23, 43, 142); /* oklch */ color: oklch(35.0% 0.164 267.4);
Tailwind
colors: {
custom: {
50: '#6c64b0',
500: '#172b8e',
950: '#000000',
},
}SCSS
$custom: #172b8e; $custom-light: #6c64b0; $custom-dark: #000000;
JSON
{
"hex": "#172b8e",
"rgb": {
"r": 23,
"g": 43,
"b": 142
},
"hsl": {
"h": 229.916,
"s": 72.121,
"l": 32.353
},
"oklch": {
"l": 0.35043,
"c": 0.16385,
"h": 267.4
},
"luminance": 0.03863
}Semantic roles & 50–950 ramp
primary
#172B8E
secondary
#C0AB40
accent
#D039EF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80