#151F80#151F80
#151F80 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.159 H 269.0°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).
Color values
| HEX | #151F80 |
|---|---|
| RGB | rgb(21, 31, 128) |
| HSL | hsl(234, 72%, 29%) |
| HSV | hsv(234, 84%, 50%) |
| CMYK | cmyk(83.6%, 75.8%, 0%, 49.8%) |
| CIE-LAB | lab(18.79, 33.50, -55.00) |
| CIE-LCH | lch(18.79, 64.40, 301.34°) |
| OKLab | oklab(31.38% -0.0029 -0.1594) |
| OKLCH | oklch(31.38% 0.159 269) |
| XYZ | xyz(4.6942, 2.6974, 20.6911) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.80
Royal
#0C1793
ΔE00 3.53
Dark Royal Blue
#02066F
ΔE00 5.75
Darkblue
#00008B
ΔE00 5.97
Navy
#000080
ΔE00 6.02
Deep Blue
#040273
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#151F80 #807615
analogous
#155580 #151F80 #411580
triadic
#151F80 #80151F #1F8015
tetradic
#151F80 #801555 #807615 #158041
square
#151F80 #801555 #807615 #158041
split-complementary
#151F80 #804115 #558015
monochromatic
#04061A #0C124B #151F80 #1E2CB5 #3242DD
Accessibility & contrast
On white
13.64
#151F80 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#151F80 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #151F80
13.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##151F80 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##151F80 | 1.00 | 13.64 | 1.54 | 13.64 |
| #FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#00287E
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #151f80; /* rgb */ color: rgb(21, 31, 128); /* oklch */ color: oklch(31.4% 0.159 269.0);
Tailwind
colors: {
custom: {
50: '#685ba6',
500: '#151f80',
950: '#000000',
},
}SCSS
$custom: #151f80; $custom-light: #685ba6; $custom-dark: #000000;
JSON
{
"hex": "#151f80",
"rgb": {
"r": 21,
"g": 31,
"b": 128
},
"hsl": {
"h": 234.393,
"s": 71.812,
"l": 29.216
},
"oklch": {
"l": 0.31379,
"c": 0.1594,
"h": 269
},
"luminance": 0.02698
}Semantic roles & 50–950 ramp
primary
#151F80
secondary
#B5AA3C
accent
#DE39EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F