#171B6E#171B6E
#171B6E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.139 H 271.6°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).
Color values
| HEX | #171B6E |
|---|---|
| RGB | rgb(23, 27, 110) |
| HSL | hsl(237, 65%, 26%) |
| HSV | hsv(237, 79%, 43%) |
| CMYK | cmyk(79.1%, 75.5%, 0%, 56.9%) |
| CIE-LAB | lab(15.96, 29.52, -48.11) |
| CIE-LCH | lch(15.96, 56.44, 301.53°) |
| OKLab | oklab(28.78% 0.0038 -0.1393) |
| OKLCH | oklch(28.78% 0.139 271.6) |
| XYZ | xyz(3.5588, 2.0914, 14.9650) |
| Luminance | 0.0209 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 0.84
Darkblue (survey)
#030764
ΔE00 4.73
Dark Royal Blue
#02066F
ΔE00 4.79
Deep Blue
#040273
ΔE00 5.55
Royal
#0C1793
ΔE00 5.86
Dark Blue
#00035B
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171B6E #6E6A17
analogous
#17466E #171B6E #3E176E
triadic
#171B6E #6E171B #1B6E17
tetradic
#171B6E #6E1746 #6E6A17 #176E3E
square
#171B6E #6E1746 #6E6A17 #176E3E
split-complementary
#171B6E #6E3E17 #466E17
monochromatic
#050619 #0C0F3B #171B6E #2227A1 #2C34D3
Accessibility & contrast
On white
14.81
#171B6E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#171B6E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171B6E
14.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171B6E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171B6E | 1.00 | 14.81 | 1.42 | 14.81 |
| #FFFFFF | 14.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#003342
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #171b6e; /* rgb */ color: rgb(23, 27, 110); /* oklch */ color: oklch(28.8% 0.139 271.6);
Tailwind
colors: {
custom: {
50: '#645899',
500: '#171b6e',
950: '#000000',
},
}SCSS
$custom: #171b6e; $custom-light: #645899; $custom-dark: #000000;
JSON
{
"hex": "#171b6e",
"rgb": {
"r": 23,
"g": 27,
"b": 110
},
"hsl": {
"h": 237.241,
"s": 65.414,
"l": 26.078
},
"oklch": {
"l": 0.28784,
"c": 0.1393,
"h": 271.6
},
"luminance": 0.02092
}Semantic roles & 50–950 ramp
primary
#171B6E
secondary
#A49F3D
accent
#E13FE8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E