#152F8F#152F8F
#152F8F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.161 H 266.1°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).
Color values
| HEX | #152F8F |
|---|---|
| RGB | rgb(21, 47, 143) |
| HSL | hsl(227, 74%, 32%) |
| HSV | hsv(227, 85%, 56%) |
| CMYK | cmyk(85.3%, 67.1%, 0%, 43.9%) |
| CIE-LAB | lab(24.24, 28.70, -55.42) |
| CIE-LCH | lch(24.24, 62.41, 297.38°) |
| OKLab | oklab(35.81% -0.0111 -0.1606) |
| OKLCH | oklch(35.81% 0.161 266.1) |
| XYZ | xyz(6.2820, 4.1749, 26.4560) |
| Luminance | 0.0418 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.60
Royal
#0C1793
ΔE00 6.42
Blueberry
#464196
ΔE00 7.24
Midnight Blue
#191970
ΔE00 7.26
Darkslateblue
#483D8B
ΔE00 7.51
Marine
#042E60
ΔE00 8.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#152F8F #8F7515
analogous
#156C8F #152F8F #38158F
triadic
#152F8F #8F152F #2F8F15
tetradic
#152F8F #8F156C #8F7515 #158F38
square
#152F8F #8F156C #8F7515 #158F38
split-complementary
#152F8F #8F3815 #6C8F15
monochromatic
#050C24 #0D1D5A #152F8F #1D41C4 #3C5FE2
Accessibility & contrast
On white
11.44
#152F8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#152F8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #152F8F
11.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##152F8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##152F8F | 1.00 | 11.44 | 1.84 | 11.44 |
| #FFFFFF | 11.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #152f8f; /* rgb */ color: rgb(21, 47, 143); /* oklch */ color: oklch(35.8% 0.161 266.1);
Tailwind
colors: {
custom: {
50: '#6b67b1',
500: '#152f8f',
950: '#000000',
},
}SCSS
$custom: #152f8f; $custom-light: #6b67b1; $custom-dark: #000000;
JSON
{
"hex": "#152f8f",
"rgb": {
"r": 21,
"g": 47,
"b": 143
},
"hsl": {
"h": 227.213,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.35806,
"c": 0.16094,
"h": 266.1
},
"luminance": 0.04176
}Semantic roles & 50–950 ramp
primary
#152F8F
secondary
#C2A63E
accent
#C937F1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80