#28237E#28237E
#28237E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.147 H 277.1°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).
Color values
| HEX | #28237E |
|---|---|
| RGB | rgb(40, 35, 126) |
| HSL | hsl(243, 57%, 32%) |
| HSV | hsv(243, 72%, 49%) |
| CMYK | cmyk(68.3%, 72.2%, 0%, 50.6%) |
| CIE-LAB | lab(20.67, 32.25, -50.59) |
| CIE-LCH | lch(20.67, 60.00, 302.51°) |
| OKLab | oklab(32.98% 0.0181 -0.1461) |
| OKLCH | oklch(32.98% 0.147 277.1) |
| XYZ | xyz(5.2408, 3.1591, 20.0682) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.29
Royal
#0C1793
ΔE00 4.66
Indigo (survey)
#380282
ΔE00 6.63
Dark Royal Blue
#02066F
ΔE00 6.83
Darkblue
#00008B
ΔE00 7.11
Navy
#000080
ΔE00 7.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28237E #797E23
analogous
#234C7E #28237E #56237E
triadic
#28237E #7E2823 #237E28
tetradic
#28237E #7E234C #797E23 #237E56
square
#28237E #7E234C #797E23 #237E56
split-complementary
#28237E #7E5623 #4C7E23
monochromatic
#0A081E #19164E #28237E #3730AE #554ECE
Accessibility & contrast
On white
12.87
#28237E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#28237E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28237E
12.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28237E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28237E | 1.00 | 12.87 | 1.63 | 12.87 |
| #FFFFFF | 12.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #28237e; /* rgb */ color: rgb(40, 35, 126); /* oklch */ color: oklch(33.0% 0.147 277.1);
Tailwind
colors: {
custom: {
50: '#6e5fa4',
500: '#28237e',
950: '#000000',
},
}SCSS
$custom: #28237e; $custom-light: #6e5fa4; $custom-dark: #000000;
JSON
{
"hex": "#28237e",
"rgb": {
"r": 40,
"g": 35,
"b": 126
},
"hsl": {
"h": 243.297,
"s": 56.522,
"l": 31.569
},
"oklch": {
"l": 0.32979,
"c": 0.14719,
"h": 277.1
},
"luminance": 0.0316
}Semantic roles & 50–950 ramp
primary
#28237E
secondary
#ABB04C
accent
#E048D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F