#28158E#28158E
#28158E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.9% C 0.181 H 276.9°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).
Color values
| HEX | #28158E |
|---|---|
| RGB | rgb(40, 21, 142) |
| HSL | hsl(249, 74%, 32%) |
| HSV | hsv(249, 85%, 56%) |
| CMYK | cmyk(71.8%, 85.2%, 0%, 44.3%) |
| CIE-LAB | lab(19.80, 45.04, -62.09) |
| CIE-LCH | lch(19.80, 76.70, 305.95°) |
| OKLab | oklab(32.89% 0.0217 -0.1794) |
| OKLCH | oklch(32.89% 0.181 276.9) |
| XYZ | xyz(6.0241, 2.9399, 25.8359) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.14
Cobalt Blue
#030AA7
ΔE00 3.78
Indigo (survey)
#380282
ΔE00 3.81
Darkblue
#00008B
ΔE00 3.84
Royal Blue (survey)
#0504AA
ΔE00 4.21
Navy
#000080
ΔE00 4.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28158E #7B8E15
analogous
#153F8E #28158E #64158E
triadic
#28158E #8E2815 #158E28
tetradic
#28158E #8E153F #7B8E15 #158E64
square
#28158E #8E153F #7B8E15 #158E64
split-complementary
#28158E #8E6415 #3F8E15
monochromatic
#0A0523 #190D59 #28158E #371DC3 #563BE2
Accessibility & contrast
On white
13.22
#28158E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#28158E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28158E
13.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28158E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28158E | 1.00 | 13.22 | 1.59 | 13.22 |
| #FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002B8C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #28158e; /* rgb */ color: rgb(40, 21, 142); /* oklch */ color: oklch(32.9% 0.181 276.9);
Tailwind
colors: {
custom: {
50: '#7358b0',
500: '#28158e',
950: '#000000',
},
}SCSS
$custom: #28158e; $custom-light: #7358b0; $custom-dark: #000000;
JSON
{
"hex": "#28158e",
"rgb": {
"r": 40,
"g": 21,
"b": 142
},
"hsl": {
"h": 249.421,
"s": 74.233,
"l": 31.961
},
"oklch": {
"l": 0.32894,
"c": 0.18071,
"h": 276.9
},
"luminance": 0.0294
}Semantic roles & 50–950 ramp
primary
#28158E
secondary
#ADC23D
accent
#F137D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880