#28188E#28188E
#28188E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.178 H 276.6°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).
Color values
| HEX | #28188E |
|---|---|
| RGB | rgb(40, 24, 142) |
| HSL | hsl(248, 71%, 33%) |
| HSV | hsv(248, 83%, 56%) |
| CMYK | cmyk(71.8%, 83.1%, 0%, 44.3%) |
| CIE-LAB | lab(20.27, 43.66, -61.31) |
| CIE-LCH | lch(20.27, 75.27, 305.45°) |
| OKLab | oklab(33.22% 0.0205 -0.1772) |
| OKLCH | oklch(33.22% 0.178 276.6) |
| XYZ | xyz(6.0826, 3.0568, 25.8554) |
| Luminance | 0.0306 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.06
Cobalt Blue
#030AA7
ΔE00 3.98
Indigo (survey)
#380282
ΔE00 4.22
Darkblue
#00008B
ΔE00 4.28
Royal Blue (survey)
#0504AA
ΔE00 4.46
Navy
#000080
ΔE00 5.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28188E #7E8E18
analogous
#18438E #28188E #63188E
triadic
#28188E #8E2818 #188E28
tetradic
#28188E #8E1843 #7E8E18 #188E63
square
#28188E #8E1843 #7E8E18 #188E63
split-complementary
#28188E #8E6318 #438E18
monochromatic
#0B0625 #190F5A #28188E #3721C2 #5741DF
Accessibility & contrast
On white
13.03
#28188E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#28188E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28188E
13.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28188E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28188E | 1.00 | 13.03 | 1.61 | 13.03 |
| #FFFFFF | 13.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #28188e; /* rgb */ color: rgb(40, 24, 142); /* oklch */ color: oklch(33.2% 0.178 276.6);
Tailwind
colors: {
custom: {
50: '#7359b0',
500: '#28188e',
950: '#000000',
},
}SCSS
$custom: #28188e; $custom-light: #7359b0; $custom-dark: #000000;
JSON
{
"hex": "#28188e",
"rgb": {
"r": 40,
"g": 24,
"b": 142
},
"hsl": {
"h": 248.136,
"s": 71.084,
"l": 32.549
},
"oklch": {
"l": 0.33217,
"c": 0.17838,
"h": 276.6
},
"luminance": 0.03057
}Semantic roles & 50–950 ramp
primary
#28188E
secondary
#AFC042
accent
#EE3AD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980