#152E8F#152E8F
#152E8F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.162 H 266.3°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).
Color values
| HEX | #152E8F |
|---|---|
| RGB | rgb(21, 46, 143) |
| HSL | hsl(228, 74%, 32%) |
| HSV | hsv(228, 85%, 56%) |
| CMYK | cmyk(85.3%, 67.8%, 0%, 43.9%) |
| CIE-LAB | lab(23.99, 29.38, -55.84) |
| CIE-LCH | lch(23.99, 63.10, 297.75°) |
| OKLab | oklab(35.62% -0.0106 -0.1618) |
| OKLCH | oklch(35.62% 0.162 266.3) |
| XYZ | xyz(6.2424, 4.0958, 26.4428) |
| Luminance | 0.0410 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.71
Royal
#0C1793
ΔE00 6.10
Midnight Blue
#191970
ΔE00 7.01
Blueberry
#464196
ΔE00 7.37
Darkslateblue
#483D8B
ΔE00 7.59
Marine
#042E60
ΔE00 8.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#152E8F #8F7615
analogous
#156B8F #152E8F #39158F
triadic
#152E8F #8F152E #2E8F15
tetradic
#152E8F #8F156B #8F7615 #158F39
square
#152E8F #8F156B #8F7615 #158F39
split-complementary
#152E8F #8F3915 #6B8F15
monochromatic
#050C24 #0D1D5A #152E8F #1D3FC4 #3C5EE2
Accessibility & contrast
On white
11.54
#152E8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#152E8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #152E8F
11.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##152E8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##152E8F | 1.00 | 11.54 | 1.82 | 11.54 |
| #FFFFFF | 11.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #152e8f; /* rgb */ color: rgb(21, 46, 143); /* oklch */ color: oklch(35.6% 0.162 266.3);
Tailwind
colors: {
custom: {
50: '#6b66b1',
500: '#152e8f',
950: '#000000',
},
}SCSS
$custom: #152e8f; $custom-light: #6b66b1; $custom-dark: #000000;
JSON
{
"hex": "#152e8f",
"rgb": {
"r": 21,
"g": 46,
"b": 143
},
"hsl": {
"h": 227.705,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.35618,
"c": 0.16214,
"h": 266.3
},
"luminance": 0.04097
}Semantic roles & 50–950 ramp
primary
#152E8F
secondary
#C2A73E
accent
#CB37F1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80