#152A7C#152A7C
#152A7C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.141 H 266.8°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).
Color values
| HEX | #152A7C |
|---|---|
| RGB | rgb(21, 42, 124) |
| HSL | hsl(228, 71%, 28%) |
| HSV | hsv(228, 83%, 49%) |
| CMYK | cmyk(83.1%, 66.1%, 0%, 51.4%) |
| CIE-LAB | lab(21.09, 24.59, -48.67) |
| CIE-LCH | lch(21.09, 54.53, 296.81°) |
| OKLab | oklab(32.93% -0.0078 -0.1409) |
| OKLCH | oklch(32.93% 0.141 266.8) |
| XYZ | xyz(4.7740, 3.2700, 19.4444) |
| Luminance | 0.0327 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.25
Marine
#042E60
ΔE00 6.37
Royal
#0C1793
ΔE00 6.73
Sapphire (survey)
#2138AB
ΔE00 7.55
Marine Blue
#01386A
ΔE00 7.89
Darkslateblue
#483D8B
ΔE00 8.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#152A7C #7C6715
analogous
#155D7C #152A7C #33157C
triadic
#152A7C #7C152A #2A7C15
tetradic
#152A7C #7C155D #7C6715 #157C33
square
#152A7C #7C155D #7C6715 #157C33
split-complementary
#152A7C #7C3315 #5D7C15
monochromatic
#04091A #0C1848 #152A7C #1E3CB0 #3053DC
Accessibility & contrast
On white
12.69
#152A7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#152A7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #152A7C
12.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##152A7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##152A7C | 1.00 | 12.69 | 1.65 | 12.69 |
| #FFFFFF | 12.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #152a7c; /* rgb */ color: rgb(21, 42, 124); /* oklch */ color: oklch(32.9% 0.141 266.8);
Tailwind
colors: {
custom: {
50: '#6663a3',
500: '#152a7c',
950: '#000000',
},
}SCSS
$custom: #152a7c; $custom-light: #6663a3; $custom-dark: #000000;
JSON
{
"hex": "#152a7c",
"rgb": {
"r": 21,
"g": 42,
"b": 124
},
"hsl": {
"h": 227.767,
"s": 71.034,
"l": 28.431
},
"oklch": {
"l": 0.32929,
"c": 0.1411,
"h": 266.8
},
"luminance": 0.03271
}Semantic roles & 50–950 ramp
primary
#152A7C
secondary
#B1993C
accent
#C93AEE
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F