#151F7C#151F7C
#151F7C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.154 H 269.1°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).
Color values
| HEX | #151F7C |
|---|---|
| RGB | rgb(21, 31, 124) |
| HSL | hsl(234, 71%, 28%) |
| HSV | hsv(234, 83%, 49%) |
| CMYK | cmyk(83.1%, 75%, 0%, 51.4%) |
| CIE-LAB | lab(18.34, 32.01, -53.20) |
| CIE-LCH | lch(18.34, 62.09, 301.03°) |
| OKLab | oklab(30.92% -0.0023 -0.1541) |
| OKLCH | oklch(30.92% 0.154 269.1) |
| XYZ | xyz(4.4361, 2.5941, 19.3318) |
| Luminance | 0.0260 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.35
Royal
#0C1793
ΔE00 4.11
Dark Royal Blue
#02066F
ΔE00 5.65
Deep Blue
#040273
ΔE00 6.15
Navy
#000080
ΔE00 6.21
Darkblue (survey)
#030764
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#151F7C #7C7215
analogous
#15527C #151F7C #3E157C
triadic
#151F7C #7C151F #1F7C15
tetradic
#151F7C #7C1552 #7C7215 #157C3E
square
#151F7C #7C1552 #7C7215 #157C3E
split-complementary
#151F7C #7C3E15 #527C15
monochromatic
#04071A #0C1248 #151F7C #1E2CB0 #3040DC
Accessibility & contrast
On white
13.82
#151F7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#151F7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #151F7C
13.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##151F7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##151F7C | 1.00 | 13.82 | 1.52 | 13.82 |
| #FFFFFF | 13.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#00287A
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #151f7c; /* rgb */ color: rgb(21, 31, 124); /* oklch */ color: oklch(30.9% 0.154 269.1);
Tailwind
colors: {
custom: {
50: '#675ba3',
500: '#151f7c',
950: '#000000',
},
}SCSS
$custom: #151f7c; $custom-light: #675ba3; $custom-dark: #000000;
JSON
{
"hex": "#151f7c",
"rgb": {
"r": 21,
"g": 31,
"b": 124
},
"hsl": {
"h": 234.175,
"s": 71.034,
"l": 28.431
},
"oklch": {
"l": 0.30924,
"c": 0.15416,
"h": 269.1
},
"luminance": 0.02595
}Semantic roles & 50–950 ramp
primary
#151F7C
secondary
#B1A63C
accent
#DC3AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F