#151F89#151F89
#151F89 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.171 H 268.6°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).
Color values
| HEX | #151F89 |
|---|---|
| RGB | rgb(21, 31, 137) |
| HSL | hsl(235, 73%, 31%) |
| HSV | hsv(235, 85%, 54%) |
| CMYK | cmyk(84.7%, 77.4%, 0%, 46.3%) |
| CIE-LAB | lab(19.82, 36.77, -58.97) |
| CIE-LCH | lch(19.82, 69.49, 301.95°) |
| OKLab | oklab(32.42% -0.0042 -0.1709) |
| OKLCH | oklch(32.42% 0.171 268.6) |
| XYZ | xyz(5.3130, 2.9449, 23.9505) |
| Luminance | 0.0295 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.39
Midnight Blue
#191970
ΔE00 3.97
Cobalt Blue
#030AA7
ΔE00 5.38
Darkblue
#00008B
ΔE00 5.48
Navy
#000080
ΔE00 5.89
Royal Blue (survey)
#0504AA
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#151F89 #897F15
analogous
#155989 #151F89 #451589
triadic
#151F89 #89151F #1F8915
tetradic
#151F89 #891559 #897F15 #158945
square
#151F89 #891559 #897F15 #158945
split-complementary
#151F89 #894515 #598915
monochromatic
#05071F #0D1354 #151F89 #1D2BBE #3846E0
Accessibility & contrast
On white
13.21
#151F89 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#151F89 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #151F89
13.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##151F89 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##151F89 | 1.00 | 13.21 | 1.59 | 13.21 |
| #FFFFFF | 13.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #151f89; /* rgb */ color: rgb(21, 31, 137); /* oklch */ color: oklch(32.4% 0.171 268.6);
Tailwind
colors: {
custom: {
50: '#6b5cad',
500: '#151f89',
950: '#000000',
},
}SCSS
$custom: #151f89; $custom-light: #6b5cad; $custom-dark: #000000;
JSON
{
"hex": "#151f89",
"rgb": {
"r": 21,
"g": 31,
"b": 137
},
"hsl": {
"h": 234.828,
"s": 73.418,
"l": 30.98
},
"oklch": {
"l": 0.3242,
"c": 0.17093,
"h": 268.6
},
"luminance": 0.02946
}Semantic roles & 50–950 ramp
primary
#151F89
secondary
#BDB23D
accent
#E038F0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F