#2E216E#2E216E
#2E216E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.6% C 0.127 H 284.2°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).
Color values
| HEX | #2E216E |
|---|---|
| RGB | rgb(46, 33, 110) |
| HSL | hsl(250, 54%, 28%) |
| HSV | hsv(250, 70%, 43%) |
| CMYK | cmyk(58.2%, 70%, 0%, 56.9%) |
| CIE-LAB | lab(19.20, 28.95, -42.72) |
| CIE-LCH | lch(19.20, 51.61, 304.12°) |
| OKLab | oklab(31.58% 0.031 -0.1228) |
| OKLCH | oklch(31.58% 0.127 284.2) |
| XYZ | xyz(4.4842, 2.7941, 15.0519) |
| Luminance | 0.0279 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.41
Dark Indigo
#1F0954
ΔE00 6.49
Darkblue (survey)
#030764
ΔE00 6.95
Indigo (survey)
#380282
ΔE00 7.00
Dark Royal Blue
#02066F
ΔE00 7.02
Royal
#0C1793
ΔE00 7.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E216E #616E21
analogous
#213A6E #2E216E #54216E
triadic
#2E216E #6E2E21 #216E2E
tetradic
#2E216E #6E213A #616E21 #216E54
square
#2E216E #6E213A #616E21 #216E54
split-complementary
#2E216E #6E5421 #3A6E21
monochromatic
#0A0718 #1A133F #2E216E #422F9D #5943C7
Accessibility & contrast
On white
13.47
#2E216E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2E216E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E216E
13.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E216E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E216E | 1.00 | 13.47 | 1.56 | 13.47 |
| #FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#103544
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2e216e; /* rgb */ color: rgb(46, 33, 110); /* oklch */ color: oklch(31.6% 0.127 284.2);
Tailwind
colors: {
custom: {
50: '#6e5d98',
500: '#2e216e',
950: '#000000',
},
}SCSS
$custom: #2e216e; $custom-light: #6e5d98; $custom-dark: #000000;
JSON
{
"hex": "#2e216e",
"rgb": {
"r": 46,
"g": 33,
"b": 110
},
"hsl": {
"h": 250.13,
"s": 53.846,
"l": 28.039
},
"oklch": {
"l": 0.31582,
"c": 0.12668,
"h": 284.2
},
"luminance": 0.02794
}Semantic roles & 50–950 ramp
primary
#2E216E
secondary
#93A249
accent
#DD4BC4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E