#2E1896#2E1896
#2E1896 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.186 H 278.3°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1896 |
|---|---|
| RGB | rgb(46, 24, 150) |
| HSL | hsl(250, 72%, 34%) |
| HSV | hsv(250, 84%, 59%) |
| CMYK | cmyk(69.3%, 84%, 0%, 41.2%) |
| CIE-LAB | lab(21.71, 46.61, -63.88) |
| CIE-LCH | lch(21.71, 79.07, 306.12°) |
| OKLab | oklab(34.61% 0.0269 -0.1845) |
| OKLCH | oklch(34.61% 0.186 278.3) |
| XYZ | xyz(6.9566, 3.4355, 29.1448) |
| Luminance | 0.0344 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.67
Cobalt Blue
#030AA7
ΔE00 3.48
Royal Blue (survey)
#0504AA
ΔE00 3.87
Indigo Blue
#3A18B1
ΔE00 3.99
Ultramarine
#2000B1
ΔE00 4.14
Indigo (survey)
#380282
ΔE00 4.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1896 #809618
analogous
#184196 #2E1896 #6D1896
triadic
#2E1896 #962E18 #18962E
tetradic
#2E1896 #961841 #809618 #18966D
square
#2E1896 #961841 #809618 #18966D
split-complementary
#2E1896 #966D18 #419618
monochromatic
#0E072C #1E1061 #2E1896 #3E20CB #6247E2
Accessibility & contrast
On white
12.45
#2E1896 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#2E1896 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1896
12.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1896 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1896 | 1.00 | 12.45 | 1.69 | 12.45 |
| #FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#002F94
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2e1896; /* rgb */ color: rgb(46, 24, 150); /* oklch */ color: oklch(34.6% 0.186 278.3);
Tailwind
colors: {
custom: {
50: '#775ab6',
500: '#2e1896',
950: '#000000',
},
}SCSS
$custom: #2e1896; $custom-light: #775ab6; $custom-dark: #000000;
JSON
{
"hex": "#2e1896",
"rgb": {
"r": 46,
"g": 24,
"b": 150
},
"hsl": {
"h": 250.476,
"s": 72.414,
"l": 34.118
},
"oklch": {
"l": 0.34612,
"c": 0.18645,
"h": 278.3
},
"luminance": 0.03436
}Semantic roles & 50–950 ramp
primary
#2E1896
secondary
#ADC347
accent
#EF39CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980