#152D8D#152D8D
#152D8D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.161 H 266.4°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).
Color values
| HEX | #152D8D |
|---|---|
| RGB | rgb(21, 45, 141) |
| HSL | hsl(228, 74%, 32%) |
| HSV | hsv(228, 85%, 55%) |
| CMYK | cmyk(85.1%, 68.1%, 0%, 44.7%) |
| CIE-LAB | lab(23.53, 29.27, -55.34) |
| CIE-LCH | lch(23.53, 62.61, 297.88°) |
| OKLab | oklab(35.23% -0.01 -0.1603) |
| OKLCH | oklch(35.23% 0.161 266.4) |
| XYZ | xyz(6.0537, 3.9586, 25.6392) |
| Luminance | 0.0396 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.07
Royal
#0C1793
ΔE00 5.91
Midnight Blue
#191970
ΔE00 6.65
Blueberry
#464196
ΔE00 7.57
Darkslateblue
#483D8B
ΔE00 7.67
Marine
#042E60
ΔE00 8.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#152D8D #8D7515
analogous
#15698D #152D8D #39158D
triadic
#152D8D #8D152D #2D8D15
tetradic
#152D8D #8D1569 #8D7515 #158D39
square
#152D8D #8D1569 #8D7515 #158D39
split-complementary
#152D8D #8D3915 #698D15
monochromatic
#050B22 #0D1C58 #152D8D #1D3EC2 #3B5CE2
Accessibility & contrast
On white
11.72
#152D8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#152D8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #152D8D
11.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##152D8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##152D8D | 1.00 | 11.72 | 1.79 | 11.72 |
| #FFFFFF | 11.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #152d8d; /* rgb */ color: rgb(21, 45, 141); /* oklch */ color: oklch(35.2% 0.161 266.4);
Tailwind
colors: {
custom: {
50: '#6b65af',
500: '#152d8d',
950: '#000000',
},
}SCSS
$custom: #152d8d; $custom-light: #6b65af; $custom-dark: #000000;
JSON
{
"hex": "#152d8d",
"rgb": {
"r": 21,
"g": 45,
"b": 141
},
"hsl": {
"h": 228,
"s": 74.074,
"l": 31.765
},
"oklch": {
"l": 0.35227,
"c": 0.16066,
"h": 266.4
},
"luminance": 0.03959
}Semantic roles & 50–950 ramp
primary
#152D8D
secondary
#C1A63D
accent
#CC37F1
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080510
muted
#7B7A7F