#28227E#28227E
#28227E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.148 H 277.3°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).
Color values
| HEX | #28227E |
|---|---|
| RGB | rgb(40, 34, 126) |
| HSL | hsl(244, 58%, 31%) |
| HSV | hsv(244, 73%, 49%) |
| CMYK | cmyk(68.3%, 73%, 0%, 50.6%) |
| CIE-LAB | lab(20.44, 32.87, -50.97) |
| CIE-LCH | lch(20.44, 60.64, 302.82°) |
| OKLab | oklab(32.82% 0.0188 -0.1471) |
| OKLCH | oklch(32.82% 0.148 277.3) |
| XYZ | xyz(5.2118, 3.1011, 20.0585) |
| Luminance | 0.0310 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.15
Royal
#0C1793
ΔE00 4.50
Indigo (survey)
#380282
ΔE00 6.36
Dark Royal Blue
#02066F
ΔE00 6.59
Darkblue
#00008B
ΔE00 6.86
Navy
#000080
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28227E #787E22
analogous
#224A7E #28227E #56227E
triadic
#28227E #7E2822 #227E28
tetradic
#28227E #7E224A #787E22 #227E56
square
#28227E #7E224A #787E22 #227E56
split-complementary
#28227E #7E5622 #4A7E22
monochromatic
#09081E #19154E #28227E #372FAE #544CCF
Accessibility & contrast
On white
12.96
#28227E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#28227E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28227E
12.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28227E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28227E | 1.00 | 12.96 | 1.62 | 12.96 |
| #FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #28227e; /* rgb */ color: rgb(40, 34, 126); /* oklch */ color: oklch(32.8% 0.148 277.3);
Tailwind
colors: {
custom: {
50: '#6e5ea4',
500: '#28227e',
950: '#000000',
},
}SCSS
$custom: #28227e; $custom-light: #6e5ea4; $custom-dark: #000000;
JSON
{
"hex": "#28227e",
"rgb": {
"r": 40,
"g": 34,
"b": 126
},
"hsl": {
"h": 243.913,
"s": 57.5,
"l": 31.373
},
"oklch": {
"l": 0.32817,
"c": 0.14835,
"h": 277.3
},
"luminance": 0.03102
}Semantic roles & 50–950 ramp
primary
#28227E
secondary
#AAB14B
accent
#E147D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F