#28217C#28217C
#28217C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.147 H 277.8°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).
Color values
| HEX | #28217C |
|---|---|
| RGB | rgb(40, 33, 124) |
| HSL | hsl(245, 58%, 31%) |
| HSV | hsv(245, 73%, 49%) |
| CMYK | cmyk(67.7%, 73.4%, 0%, 51.4%) |
| CIE-LAB | lab(20.02, 32.79, -50.39) |
| CIE-LCH | lch(20.02, 60.12, 303.05°) |
| OKLab | oklab(32.45% 0.0199 -0.1455) |
| OKLCH | oklch(32.45% 0.147 277.8) |
| XYZ | xyz(5.0558, 2.9936, 19.3763) |
| Luminance | 0.0299 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.85
Royal
#0C1793
ΔE00 4.62
Indigo (survey)
#380282
ΔE00 6.20
Dark Royal Blue
#02066F
ΔE00 6.33
Deep Blue
#040273
ΔE00 6.72
Navy
#000080
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28217C #757C21
analogous
#21477C #28217C #55217C
triadic
#28217C #7C2821 #217C28
tetradic
#28217C #7C2147 #757C21 #217C55
square
#28217C #7C2147 #757C21 #217C55
split-complementary
#28217C #7C5521 #477C21
monochromatic
#09071B #18144C #28217C #382EAC #5349CF
Accessibility & contrast
On white
13.13
#28217C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#28217C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28217C
13.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28217C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28217C | 1.00 | 13.13 | 1.60 | 13.13 |
| #FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #28217c; /* rgb */ color: rgb(40, 33, 124); /* oklch */ color: oklch(32.5% 0.147 277.8);
Tailwind
colors: {
custom: {
50: '#6e5da3',
500: '#28217c',
950: '#000000',
},
}SCSS
$custom: #28217c; $custom-light: #6e5da3; $custom-dark: #000000;
JSON
{
"hex": "#28217c",
"rgb": {
"r": 40,
"g": 33,
"b": 124
},
"hsl": {
"h": 244.615,
"s": 57.962,
"l": 30.784
},
"oklch": {
"l": 0.32451,
"c": 0.14684,
"h": 277.8
},
"luminance": 0.02994
}Semantic roles & 50–950 ramp
primary
#28217C
secondary
#A7AF4A
accent
#E147D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F