#28117F#28117F
#28117F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.166 H 279.9°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).
Color values
| HEX | #28117F |
|---|---|
| RGB | rgb(40, 17, 127) |
| HSL | hsl(253, 76%, 28%) |
| HSV | hsv(253, 87%, 50%) |
| CMYK | cmyk(68.5%, 86.6%, 0%, 50.2%) |
| CIE-LAB | lab(17.39, 42.25, -56.65) |
| CIE-LCH | lch(17.39, 70.67, 306.72°) |
| OKLab | oklab(30.71% 0.0284 -0.1635) |
| OKLCH | oklch(30.71% 0.166 279.9) |
| XYZ | xyz(4.9051, 2.3839, 20.2762) |
| Luminance | 0.0238 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.94
Navy
#000080
ΔE00 3.69
Royal
#0C1793
ΔE00 3.72
Darkblue
#00008B
ΔE00 3.75
Midnight Blue
#191970
ΔE00 3.83
Deep Blue
#040273
ΔE00 4.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28117F #687F11
analogous
#11317F #28117F #5F117F
triadic
#28117F #7F2811 #117F28
tetradic
#28117F #7F1131 #687F11 #117F5F
square
#28117F #7F1131 #687F11 #117F5F
split-complementary
#28117F #7F5F11 #317F11
monochromatic
#08041B #170A49 #28117F #3918B5 #4F28E2
Accessibility & contrast
On white
14.22
#28117F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#28117F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28117F
14.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28117F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28117F | 1.00 | 14.22 | 1.48 | 14.22 |
| #FFFFFF | 14.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #28117f; /* rgb */ color: rgb(40, 17, 127); /* oklch */ color: oklch(30.7% 0.166 279.9);
Tailwind
colors: {
custom: {
50: '#7055a5',
500: '#28117f',
950: '#000000',
},
}SCSS
$custom: #28117f; $custom-light: #7055a5; $custom-dark: #000000;
JSON
{
"hex": "#28117f",
"rgb": {
"r": 40,
"g": 17,
"b": 127
},
"hsl": {
"h": 252.545,
"s": 76.389,
"l": 28.235
},
"oklch": {
"l": 0.30705,
"c": 0.16598,
"h": 279.9
},
"luminance": 0.02384
}Semantic roles & 50–950 ramp
primary
#28117F
secondary
#9BB537
accent
#F335CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F