#2E1680#2E1680
#2E1680 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.162 H 282.6°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1680 |
|---|---|
| RGB | rgb(46, 22, 128) |
| HSL | hsl(254, 71%, 29%) |
| HSV | hsv(254, 83%, 50%) |
| CMYK | cmyk(64.1%, 82.8%, 0%, 49.8%) |
| CIE-LAB | lab(18.85, 40.89, -54.84) |
| CIE-LCH | lch(18.85, 68.40, 306.71°) |
| OKLab | oklab(31.9% 0.0352 -0.1582) |
| OKLCH | oklch(31.9% 0.162 282.6) |
| XYZ | xyz(5.3087, 2.7128, 20.6618) |
| Luminance | 0.0271 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.15
Midnight Blue
#191970
ΔE00 3.91
Royal
#0C1793
ΔE00 3.92
Darkblue
#00008B
ΔE00 4.73
Navy
#000080
ΔE00 4.82
Deep Blue
#040273
ΔE00 5.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1680 #688016
analogous
#163380 #2E1680 #631680
triadic
#2E1680 #802E16 #16802E
tetradic
#2E1680 #801633 #688016 #168063
square
#2E1680 #801633 #688016 #168063
split-complementary
#2E1680 #806316 #338016
monochromatic
#09041A #1B0D4C #2E1680 #411FB4 #5A34DC
Accessibility & contrast
On white
13.61
#2E1680 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2E1680 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1680
13.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1680 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1680 | 1.00 | 13.61 | 1.54 | 13.61 |
| #FFFFFF | 13.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2e1680; /* rgb */ color: rgb(46, 22, 128); /* oklch */ color: oklch(31.9% 0.162 282.6);
Tailwind
colors: {
custom: {
50: '#7358a6',
500: '#2e1680',
950: '#000000',
},
}SCSS
$custom: #2e1680; $custom-light: #7358a6; $custom-dark: #000000;
JSON
{
"hex": "#2e1680",
"rgb": {
"r": 46,
"g": 22,
"b": 128
},
"hsl": {
"h": 253.585,
"s": 70.667,
"l": 29.412
},
"oklch": {
"l": 0.31895,
"c": 0.16203,
"h": 282.6
},
"luminance": 0.02713
}Semantic roles & 50–950 ramp
primary
#2E1680
secondary
#9AB53D
accent
#ED3AC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F