#2E216F#2E216F
#2E216F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.7% C 0.128 H 284.0°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2E216F |
|---|---|
| RGB | rgb(46, 33, 111) |
| HSL | hsl(250, 54%, 28%) |
| HSV | hsv(250, 70%, 44%) |
| CMYK | cmyk(58.6%, 70.3%, 0%, 56.5%) |
| CIE-LAB | lab(19.29, 29.28, -43.22) |
| CIE-LCH | lch(19.29, 52.21, 304.12°) |
| OKLab | oklab(31.68% 0.0309 -0.1243) |
| OKLCH | oklch(31.68% 0.128 284) |
| XYZ | xyz(4.5389, 2.8160, 15.3402) |
| Luminance | 0.0282 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.33
Dark Indigo
#1F0954
ΔE00 6.57
Indigo (survey)
#380282
ΔE00 6.88
Darkblue (survey)
#030764
ΔE00 6.93
Dark Royal Blue
#02066F
ΔE00 6.95
Royal
#0C1793
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E216F #626F21
analogous
#213B6F #2E216F #55216F
triadic
#2E216F #6F2E21 #216F2E
tetradic
#2E216F #6F213B #626F21 #216F55
square
#2E216F #6F213B #626F21 #216F55
split-complementary
#2E216F #6F5521 #3B6F21
monochromatic
#0A0718 #1A1340 #2E216F #422F9E #5943C7
Accessibility & contrast
On white
13.43
#2E216F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2E216F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E216F
13.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E216F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E216F | 1.00 | 13.43 | 1.56 | 13.43 |
| #FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#0F3545
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2e216f; /* rgb */ color: rgb(46, 33, 111); /* oklch */ color: oklch(31.7% 0.128 284.0);
Tailwind
colors: {
custom: {
50: '#6e5d99',
500: '#2e216f',
950: '#000000',
},
}SCSS
$custom: #2e216f; $custom-light: #6e5d99; $custom-dark: #000000;
JSON
{
"hex": "#2e216f",
"rgb": {
"r": 46,
"g": 33,
"b": 111
},
"hsl": {
"h": 250,
"s": 54.167,
"l": 28.235
},
"oklch": {
"l": 0.31677,
"c": 0.12806,
"h": 284
},
"luminance": 0.02816
}Semantic roles & 50–950 ramp
primary
#2E216F
secondary
#94A349
accent
#DE4AC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E