#2E1989#2E1989
#2E1989 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.170 H 280.4°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1989 |
|---|---|
| RGB | rgb(46, 25, 137) |
| HSL | hsl(251, 69%, 32%) |
| HSV | hsv(251, 82%, 54%) |
| CMYK | cmyk(66.4%, 81.8%, 0%, 46.3%) |
| CIE-LAB | lab(20.37, 42.20, -58.01) |
| CIE-LCH | lch(20.37, 71.73, 306.03°) |
| OKLab | oklab(33.25% 0.0306 -0.1674) |
| OKLCH | oklch(33.25% 0.17 280.4) |
| XYZ | xyz(5.9883, 3.0818, 23.9413) |
| Luminance | 0.0308 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.00
Indigo (survey)
#380282
ΔE00 3.78
Midnight Blue
#191970
ΔE00 4.71
Darkblue
#00008B
ΔE00 4.79
Cobalt Blue
#030AA7
ΔE00 4.93
Navy
#000080
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1989 #748919
analogous
#193C89 #2E1989 #661989
triadic
#2E1989 #892E19 #19892E
tetradic
#2E1989 #89193C #748919 #198966
square
#2E1989 #89193C #748919 #198966
split-complementary
#2E1989 #896619 #3C8919
monochromatic
#0B0621 #1D1055 #2E1989 #3F22BD #5D40DC
Accessibility & contrast
On white
12.99
#2E1989 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2E1989 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1989
12.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1989 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1989 | 1.00 | 12.99 | 1.62 | 12.99 |
| #FFFFFF | 12.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2e1989; /* rgb */ color: rgb(46, 25, 137); /* oklch */ color: oklch(33.2% 0.170 280.4);
Tailwind
colors: {
custom: {
50: '#745aad',
500: '#2e1989',
950: '#000000',
},
}SCSS
$custom: #2e1989; $custom-light: #745aad; $custom-dark: #000000;
JSON
{
"hex": "#2e1989",
"rgb": {
"r": 46,
"g": 25,
"b": 137
},
"hsl": {
"h": 251.25,
"s": 69.136,
"l": 31.765
},
"oklch": {
"l": 0.33245,
"c": 0.17023,
"h": 280.4
},
"luminance": 0.03082
}Semantic roles & 50–950 ramp
primary
#2E1989
secondary
#A5BC41
accent
#EC3CCB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F