#152B7C#152B7C
#152B7C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.140 H 266.6°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).
Color values
| HEX | #152B7C |
|---|---|
| RGB | rgb(21, 43, 124) |
| HSL | hsl(227, 71%, 28%) |
| HSV | hsv(227, 83%, 49%) |
| CMYK | cmyk(83.1%, 65.3%, 0%, 51.4%) |
| CIE-LAB | lab(21.36, 23.89, -48.23) |
| CIE-LCH | lch(21.36, 53.82, 296.35°) |
| OKLab | oklab(33.13% -0.0084 -0.1396) |
| OKLCH | oklch(33.13% 0.14 266.6) |
| XYZ | xyz(4.8100, 3.3419, 19.4564) |
| Luminance | 0.0334 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.58
Marine
#042E60
ΔE00 6.14
Royal
#0C1793
ΔE00 7.02
Sapphire (survey)
#2138AB
ΔE00 7.46
Marine Blue
#01386A
ΔE00 7.58
Darkslateblue
#483D8B
ΔE00 8.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#152B7C #7C6615
analogous
#155E7C #152B7C #32157C
triadic
#152B7C #7C152B #2B7C15
tetradic
#152B7C #7C155E #7C6615 #157C32
square
#152B7C #7C155E #7C6615 #157C32
split-complementary
#152B7C #7C3215 #5E7C15
monochromatic
#04091A #0C1948 #152B7C #1E3DB0 #3054DC
Accessibility & contrast
On white
12.59
#152B7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#152B7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #152B7C
12.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##152B7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##152B7C | 1.00 | 12.59 | 1.67 | 12.59 |
| #FFFFFF | 12.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #152b7c; /* rgb */ color: rgb(21, 43, 124); /* oklch */ color: oklch(33.1% 0.140 266.6);
Tailwind
colors: {
custom: {
50: '#6664a3',
500: '#152b7c',
950: '#000000',
},
}SCSS
$custom: #152b7c; $custom-light: #6664a3; $custom-dark: #000000;
JSON
{
"hex": "#152b7c",
"rgb": {
"r": 21,
"g": 43,
"b": 124
},
"hsl": {
"h": 227.184,
"s": 71.034,
"l": 28.431
},
"oklch": {
"l": 0.33128,
"c": 0.13982,
"h": 266.6
},
"luminance": 0.03342
}Semantic roles & 50–950 ramp
primary
#152B7C
secondary
#B1983C
accent
#C73AEE
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F