#152D8E#152D8E
#152D8E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.162 H 266.4°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).
Color values
| HEX | #152D8E |
|---|---|
| RGB | rgb(21, 45, 142) |
| HSL | hsl(228, 74%, 32%) |
| HSV | hsv(228, 85%, 56%) |
| CMYK | cmyk(85.2%, 68.3%, 0%, 44.3%) |
| CIE-LAB | lab(23.63, 29.66, -55.80) |
| CIE-LCH | lch(23.63, 63.19, 298.00°) |
| OKLab | oklab(35.33% -0.0101 -0.1617) |
| OKLCH | oklch(35.33% 0.162 266.4) |
| XYZ | xyz(6.1284, 3.9884, 26.0328) |
| Luminance | 0.0399 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.95
Royal
#0C1793
ΔE00 5.85
Midnight Blue
#191970
ΔE00 6.71
Blueberry
#464196
ΔE00 7.54
Darkslateblue
#483D8B
ΔE00 7.68
Cobalt Blue
#030AA7
ΔE00 8.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#152D8E #8E7615
analogous
#156A8E #152D8E #3A158E
triadic
#152D8E #8E152D #2D8E15
tetradic
#152D8E #8E156A #8E7615 #158E3A
square
#152D8E #8E156A #8E7615 #158E3A
split-complementary
#152D8E #8E3A15 #6A8E15
monochromatic
#050B23 #0D1C59 #152D8E #1D3EC3 #3B5CE2
Accessibility & contrast
On white
11.68
#152D8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#152D8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #152D8E
11.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##152D8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##152D8E | 1.00 | 11.68 | 1.80 | 11.68 |
| #FFFFFF | 11.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #152d8e; /* rgb */ color: rgb(21, 45, 142); /* oklch */ color: oklch(35.3% 0.162 266.4);
Tailwind
colors: {
custom: {
50: '#6b66b0',
500: '#152d8e',
950: '#000000',
},
}SCSS
$custom: #152d8e; $custom-light: #6b66b0; $custom-dark: #000000;
JSON
{
"hex": "#152d8e",
"rgb": {
"r": 21,
"g": 45,
"b": 142
},
"hsl": {
"h": 228.099,
"s": 74.233,
"l": 31.961
},
"oklch": {
"l": 0.3533,
"c": 0.16199,
"h": 266.4
},
"luminance": 0.03989
}Semantic roles & 50–950 ramp
primary
#152D8E
secondary
#C2A73D
accent
#CC37F1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80