#28117E#28117E
#28117E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.165 H 280.1°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).
Color values
| HEX | #28117E |
|---|---|
| RGB | rgb(40, 17, 126) |
| HSL | hsl(253, 76%, 28%) |
| HSV | hsv(253, 87%, 49%) |
| CMYK | cmyk(68.3%, 86.5%, 0%, 50.6%) |
| CIE-LAB | lab(17.26, 41.95, -56.21) |
| CIE-LCH | lch(17.26, 70.14, 306.73°) |
| OKLab | oklab(30.59% 0.0288 -0.1623) |
| OKLCH | oklch(30.59% 0.165 280.1) |
| XYZ | xyz(4.8402, 2.3580, 19.9347) |
| Luminance | 0.0236 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.97
Navy
#000080
ΔE00 3.71
Midnight Blue
#191970
ΔE00 3.73
Darkblue
#00008B
ΔE00 3.83
Royal
#0C1793
ΔE00 3.84
Deep Blue
#040273
ΔE00 3.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28117E #677E11
analogous
#11307E #28117E #5F117E
triadic
#28117E #7E2811 #117E28
tetradic
#28117E #7E1130 #677E11 #117E5F
square
#28117E #7E1130 #677E11 #117E5F
split-complementary
#28117E #7E5F11 #307E11
monochromatic
#09041B #170A48 #28117E #3918B4 #4F27E2
Accessibility & contrast
On white
14.27
#28117E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#28117E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28117E
14.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28117E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28117E | 1.00 | 14.27 | 1.47 | 14.27 |
| #FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #28117e; /* rgb */ color: rgb(40, 17, 126); /* oklch */ color: oklch(30.6% 0.165 280.1);
Tailwind
colors: {
custom: {
50: '#7054a5',
500: '#28117e',
950: '#000000',
},
}SCSS
$custom: #28117e; $custom-light: #7054a5; $custom-dark: #000000;
JSON
{
"hex": "#28117e",
"rgb": {
"r": 40,
"g": 17,
"b": 126
},
"hsl": {
"h": 252.661,
"s": 76.224,
"l": 28.039
},
"oklch": {
"l": 0.30586,
"c": 0.1648,
"h": 280.1
},
"luminance": 0.02358
}Semantic roles & 50–950 ramp
primary
#28117E
secondary
#9AB437
accent
#F335CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F