#171B7B#171B7B
#171B7B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.157 H 270.6°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).
Color values
| HEX | #171B7B |
|---|---|
| RGB | rgb(23, 27, 123) |
| HSL | hsl(238, 68%, 29%) |
| HSV | hsv(238, 81%, 48%) |
| CMYK | cmyk(81.3%, 78%, 0%, 51.8%) |
| CIE-LAB | lab(17.44, 34.29, -54.05) |
| CIE-LCH | lch(17.44, 64.01, 302.39°) |
| OKLab | oklab(30.28% 0.0016 -0.1565) |
| OKLCH | oklch(30.28% 0.157 270.6) |
| XYZ | xyz(4.3192, 2.3956, 18.9698) |
| Luminance | 0.0240 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.78
Royal
#0C1793
ΔE00 3.73
Dark Royal Blue
#02066F
ΔE00 4.62
Deep Blue
#040273
ΔE00 5.07
Navy
#000080
ΔE00 5.16
Darkblue (survey)
#030764
ΔE00 5.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171B7B #7B7717
analogous
#174D7B #171B7B #45177B
triadic
#171B7B #7B171B #1B7B17
tetradic
#171B7B #7B174D #7B7717 #177B45
square
#171B7B #7B174D #7B7717 #177B45
split-complementary
#171B7B #7B4517 #4D7B17
monochromatic
#05061A #0D1047 #171B7B #2126AF #333AD9
Accessibility & contrast
On white
14.20
#171B7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#171B7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171B7B
14.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171B7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171B7B | 1.00 | 14.20 | 1.48 | 14.20 |
| #FFFFFF | 14.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #171b7b; /* rgb */ color: rgb(23, 27, 123); /* oklch */ color: oklch(30.3% 0.157 270.6);
Tailwind
colors: {
custom: {
50: '#6859a2',
500: '#171b7b',
950: '#000000',
},
}SCSS
$custom: #171b7b; $custom-light: #6859a2; $custom-dark: #000000;
JSON
{
"hex": "#171b7b",
"rgb": {
"r": 23,
"g": 27,
"b": 123
},
"hsl": {
"h": 237.6,
"s": 68.493,
"l": 28.627
},
"oklch": {
"l": 0.30278,
"c": 0.15654,
"h": 270.6
},
"luminance": 0.02396
}Semantic roles & 50–950 ramp
primary
#171B7B
secondary
#B0AB3E
accent
#E43CEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F