#2E1676#2E1676
#2E1676 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.150 H 284.9°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1676 |
|---|---|
| RGB | rgb(46, 22, 118) |
| HSL | hsl(255, 69%, 27%) |
| HSV | hsv(255, 81%, 46%) |
| CMYK | cmyk(61%, 81.4%, 0%, 53.7%) |
| CIE-LAB | lab(17.75, 37.83, -50.27) |
| CIE-LCH | lch(17.75, 62.92, 306.96°) |
| OKLab | oklab(30.8% 0.0385 -0.1449) |
| OKLCH | oklch(30.8% 0.15 284.9) |
| XYZ | xyz(4.6826, 2.4624, 17.3646) |
| Luminance | 0.0246 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.25
Indigo (survey)
#380282
ΔE00 3.73
Dark Royal Blue
#02066F
ΔE00 4.84
Deep Blue
#040273
ΔE00 5.01
Royal
#0C1793
ΔE00 5.26
Navy
#000080
ΔE00 5.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1676 #5E7616
analogous
#162E76 #2E1676 #5E1676
triadic
#2E1676 #762E16 #16762E
tetradic
#2E1676 #76162E #5E7616 #16765E
square
#2E1676 #76162E #5E7616 #16765E
split-complementary
#2E1676 #765E16 #2E7616
monochromatic
#0A051A #1A0C42 #2E1676 #4220AA #592ED8
Accessibility & contrast
On white
14.07
#2E1676 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2E1676 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1676
14.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1676 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1676 | 1.00 | 14.07 | 1.49 | 14.07 |
| #FFFFFF | 14.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#043246
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2e1676; /* rgb */ color: rgb(46, 22, 118); /* oklch */ color: oklch(30.8% 0.150 284.9);
Tailwind
colors: {
custom: {
50: '#71579f',
500: '#2e1676',
950: '#000000',
},
}SCSS
$custom: #2e1676; $custom-light: #71579f; $custom-dark: #000000;
JSON
{
"hex": "#2e1676",
"rgb": {
"r": 46,
"g": 22,
"b": 118
},
"hsl": {
"h": 255,
"s": 68.571,
"l": 27.451
},
"oklch": {
"l": 0.30796,
"c": 0.14989,
"h": 284.9
},
"luminance": 0.02463
}Semantic roles & 50–950 ramp
primary
#2E1676
secondary
#90AC3C
accent
#EB3CC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E