#152C8F#152C8F
#152C8F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.165 H 266.6°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).
Color values
| HEX | #152C8F |
|---|---|
| RGB | rgb(21, 44, 143) |
| HSL | hsl(229, 74%, 32%) |
| HSV | hsv(229, 85%, 56%) |
| CMYK | cmyk(85.3%, 69.2%, 0%, 43.9%) |
| CIE-LAB | lab(23.48, 30.72, -56.67) |
| CIE-LCH | lch(23.48, 64.46, 298.46°) |
| OKLab | oklab(35.25% -0.0097 -0.1642) |
| OKLCH | oklch(35.25% 0.165 266.6) |
| XYZ | xyz(6.1661, 3.9432, 26.4174) |
| Luminance | 0.0394 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.97
Royal
#0C1793
ΔE00 5.47
Midnight Blue
#191970
ΔE00 6.55
Blueberry
#464196
ΔE00 7.67
Cobalt Blue
#030AA7
ΔE00 7.75
Darkslateblue
#483D8B
ΔE00 7.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#152C8F #8F7815
analogous
#15698F #152C8F #3B158F
triadic
#152C8F #8F152C #2C8F15
tetradic
#152C8F #8F1569 #8F7815 #158F3B
square
#152C8F #8F1569 #8F7815 #158F3B
split-complementary
#152C8F #8F3B15 #698F15
monochromatic
#050B24 #0D1C5A #152C8F #1D3CC4 #3C5BE2
Accessibility & contrast
On white
11.74
#152C8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#152C8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #152C8F
11.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##152C8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##152C8F | 1.00 | 11.74 | 1.79 | 11.74 |
| #FFFFFF | 11.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #152c8f; /* rgb */ color: rgb(21, 44, 143); /* oklch */ color: oklch(35.3% 0.165 266.6);
Tailwind
colors: {
custom: {
50: '#6b65b1',
500: '#152c8f',
950: '#000000',
},
}SCSS
$custom: #152c8f; $custom-light: #6b65b1; $custom-dark: #000000;
JSON
{
"hex": "#152c8f",
"rgb": {
"r": 21,
"g": 44,
"b": 143
},
"hsl": {
"h": 228.689,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.3525,
"c": 0.16451,
"h": 266.6
},
"luminance": 0.03944
}Semantic roles & 50–950 ramp
primary
#152C8F
secondary
#C2A93E
accent
#CE37F1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80