#171B7E#171B7E
#171B7E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.160 H 270.4°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).
Color values
| HEX | #171B7E |
|---|---|
| RGB | rgb(23, 27, 126) |
| HSL | hsl(238, 69%, 29%) |
| HSV | hsv(238, 82%, 49%) |
| CMYK | cmyk(81.7%, 78.6%, 0%, 50.6%) |
| CIE-LAB | lab(17.79, 35.36, -55.38) |
| CIE-LCH | lch(17.79, 65.71, 302.56°) |
| OKLab | oklab(30.63% 0.001 -0.1604) |
| OKLCH | oklch(30.63% 0.16 270.4) |
| XYZ | xyz(4.5099, 2.4719, 19.9740) |
| Luminance | 0.0247 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.23
Royal
#0C1793
ΔE00 3.26
Dark Royal Blue
#02066F
ΔE00 4.74
Navy
#000080
ΔE00 5.02
Darkblue
#00008B
ΔE00 5.09
Deep Blue
#040273
ΔE00 5.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171B7E #7E7A17
analogous
#174F7E #171B7E #47177E
triadic
#171B7E #7E171B #1B7E17
tetradic
#171B7E #7E174F #7E7A17 #177E47
square
#171B7E #7E174F #7E7A17 #177E47
split-complementary
#171B7E #7E4717 #4F7E17
monochromatic
#05061A #0E104A #171B7E #2026B2 #353CDA
Accessibility & contrast
On white
14.05
#171B7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#171B7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171B7E
14.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171B7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171B7E | 1.00 | 14.05 | 1.49 | 14.05 |
| #FFFFFF | 14.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #171b7e; /* rgb */ color: rgb(23, 27, 126); /* oklch */ color: oklch(30.6% 0.160 270.4);
Tailwind
colors: {
custom: {
50: '#6959a5',
500: '#171b7e',
950: '#000000',
},
}SCSS
$custom: #171b7e; $custom-light: #6959a5; $custom-dark: #000000;
JSON
{
"hex": "#171b7e",
"rgb": {
"r": 23,
"g": 27,
"b": 126
},
"hsl": {
"h": 237.67,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.3063,
"c": 0.16039,
"h": 270.4
},
"luminance": 0.02472
}Semantic roles & 50–950 ramp
primary
#171B7E
secondary
#B3AE3E
accent
#E53CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F