#152D8F#152D8F
#152D8F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.163 H 266.4°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).
Color values
| HEX | #152D8F |
|---|---|
| RGB | rgb(21, 45, 143) |
| HSL | hsl(228, 74%, 32%) |
| HSV | hsv(228, 85%, 56%) |
| CMYK | cmyk(85.3%, 68.5%, 0%, 43.9%) |
| CIE-LAB | lab(23.73, 30.05, -56.26) |
| CIE-LCH | lch(23.73, 63.78, 298.11°) |
| OKLab | oklab(35.43% -0.0101 -0.163) |
| OKLCH | oklch(35.43% 0.163 266.4) |
| XYZ | xyz(6.2038, 4.0186, 26.4300) |
| Luminance | 0.0402 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.83
Royal
#0C1793
ΔE00 5.78
Midnight Blue
#191970
ΔE00 6.78
Blueberry
#464196
ΔE00 7.52
Darkslateblue
#483D8B
ΔE00 7.68
Cobalt Blue
#030AA7
ΔE00 8.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#152D8F #8F7715
analogous
#156A8F #152D8F #3A158F
triadic
#152D8F #8F152D #2D8F15
tetradic
#152D8F #8F156A #8F7715 #158F3A
square
#152D8F #8F156A #8F7715 #158F3A
split-complementary
#152D8F #8F3A15 #6A8F15
monochromatic
#050B24 #0D1C5A #152D8F #1D3EC4 #3C5DE2
Accessibility & contrast
On white
11.64
#152D8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#152D8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #152D8F
11.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##152D8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##152D8F | 1.00 | 11.64 | 1.80 | 11.64 |
| #FFFFFF | 11.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #152d8f; /* rgb */ color: rgb(21, 45, 143); /* oklch */ color: oklch(35.4% 0.163 266.4);
Tailwind
colors: {
custom: {
50: '#6b66b1',
500: '#152d8f',
950: '#000000',
},
}SCSS
$custom: #152d8f; $custom-light: #6b66b1; $custom-dark: #000000;
JSON
{
"hex": "#152d8f",
"rgb": {
"r": 21,
"g": 45,
"b": 143
},
"hsl": {
"h": 228.197,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.35433,
"c": 0.16332,
"h": 266.4
},
"luminance": 0.04019
}Semantic roles & 50–950 ramp
primary
#152D8F
secondary
#C2A83E
accent
#CC37F1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80