#2E1982#2E1982
#2E1982 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.162 H 281.7°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1982 |
|---|---|
| RGB | rgb(46, 25, 130) |
| HSL | hsl(252, 68%, 30%) |
| HSV | hsv(252, 81%, 51%) |
| CMYK | cmyk(64.6%, 80.8%, 0%, 49%) |
| CIE-LAB | lab(19.59, 40.03, -54.89) |
| CIE-LCH | lch(19.59, 67.94, 306.10°) |
| OKLab | oklab(32.47% 0.0328 -0.1584) |
| OKLCH | oklch(32.47% 0.162 281.7) |
| XYZ | xyz(5.5023, 2.8874, 21.3821) |
| Luminance | 0.0289 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.67
Indigo (survey)
#380282
ΔE00 3.69
Midnight Blue
#191970
ΔE00 3.91
Darkblue
#00008B
ΔE00 5.04
Navy
#000080
ΔE00 5.23
Dark Royal Blue
#02066F
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1982 #6D8219
analogous
#193882 #2E1982 #621982
triadic
#2E1982 #822E19 #19822E
tetradic
#2E1982 #821938 #6D8219 #198262
square
#2E1982 #821938 #6D8219 #198262
split-complementary
#2E1982 #826219 #388219
monochromatic
#0A051B #1C0F4F #2E1982 #4023B5 #5B3CD9
Accessibility & contrast
On white
13.31
#2E1982 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2E1982 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1982
13.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1982 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1982 | 1.00 | 13.31 | 1.58 | 13.31 |
| #FFFFFF | 13.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2e1982; /* rgb */ color: rgb(46, 25, 130); /* oklch */ color: oklch(32.5% 0.162 281.7);
Tailwind
colors: {
custom: {
50: '#7359a7',
500: '#2e1982',
950: '#000000',
},
}SCSS
$custom: #2e1982; $custom-light: #7359a7; $custom-dark: #000000;
JSON
{
"hex": "#2e1982",
"rgb": {
"r": 46,
"g": 25,
"b": 130
},
"hsl": {
"h": 252,
"s": 67.742,
"l": 30.392
},
"oklch": {
"l": 0.3247,
"c": 0.16173,
"h": 281.7
},
"luminance": 0.02888
}Semantic roles & 50–950 ramp
primary
#2E1982
secondary
#9FB641
accent
#EB3DC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F