#151F81#151F81
#151F81 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.161 H 268.9°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).
Color values
| HEX | #151F81 |
|---|---|
| RGB | rgb(21, 31, 129) |
| HSL | hsl(234, 72%, 29%) |
| HSV | hsv(234, 84%, 51%) |
| CMYK | cmyk(83.7%, 76%, 0%, 49.4%) |
| CIE-LAB | lab(18.90, 33.86, -55.45) |
| CIE-LCH | lch(18.90, 64.97, 301.41°) |
| OKLab | oklab(31.49% -0.003 -0.1607) |
| OKLCH | oklch(31.49% 0.161 268.9) |
| XYZ | xyz(4.7603, 2.7238, 21.0395) |
| Luminance | 0.0272 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.92
Royal
#0C1793
ΔE00 3.39
Dark Royal Blue
#02066F
ΔE00 5.79
Darkblue
#00008B
ΔE00 5.89
Navy
#000080
ΔE00 5.99
Deep Blue
#040273
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#151F81 #817715
analogous
#155581 #151F81 #411581
triadic
#151F81 #81151F #1F8115
tetradic
#151F81 #811555 #817715 #158141
square
#151F81 #811555 #817715 #158141
split-complementary
#151F81 #814115 #558115
monochromatic
#04061A #0C124C #151F81 #1E2CB6 #3343DE
Accessibility & contrast
On white
13.59
#151F81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#151F81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #151F81
13.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##151F81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##151F81 | 1.00 | 13.59 | 1.54 | 13.59 |
| #FFFFFF | 13.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #151f81; /* rgb */ color: rgb(21, 31, 129); /* oklch */ color: oklch(31.5% 0.161 268.9);
Tailwind
colors: {
custom: {
50: '#695ba7',
500: '#151f81',
950: '#000000',
},
}SCSS
$custom: #151f81; $custom-light: #695ba7; $custom-dark: #000000;
JSON
{
"hex": "#151f81",
"rgb": {
"r": 21,
"g": 31,
"b": 129
},
"hsl": {
"h": 234.444,
"s": 72,
"l": 29.412
},
"oklch": {
"l": 0.31494,
"c": 0.1607,
"h": 268.9
},
"luminance": 0.02724
}Semantic roles & 50–950 ramp
primary
#151F81
secondary
#B6AB3C
accent
#DE39EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#070410
muted
#7A797F