#2E1681#2E1681
#2E1681 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.163 H 282.3°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1681 |
|---|---|
| RGB | rgb(46, 22, 129) |
| HSL | hsl(253, 71%, 30%) |
| HSV | hsv(253, 83%, 51%) |
| CMYK | cmyk(64.3%, 82.9%, 0%, 49.4%) |
| CIE-LAB | lab(18.97, 41.19, -55.28) |
| CIE-LCH | lch(18.97, 68.94, 306.69°) |
| OKLab | oklab(32.01% 0.0349 -0.1595) |
| OKLCH | oklch(32.01% 0.163 282.3) |
| XYZ | xyz(5.3748, 2.7393, 21.0101) |
| Luminance | 0.0274 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.13
Royal
#0C1793
ΔE00 3.80
Midnight Blue
#191970
ΔE00 4.01
Darkblue
#00008B
ΔE00 4.67
Navy
#000080
ΔE00 4.80
Deep Blue
#040273
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1681 #698116
analogous
#163481 #2E1681 #641681
triadic
#2E1681 #812E16 #16812E
tetradic
#2E1681 #811634 #698116 #168164
square
#2E1681 #811634 #698116 #168164
split-complementary
#2E1681 #816416 #348116
monochromatic
#09041A #1B0D4D #2E1681 #411FB5 #5A35DD
Accessibility & contrast
On white
13.57
#2E1681 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2E1681 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1681
13.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1681 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1681 | 1.00 | 13.57 | 1.55 | 13.57 |
| #FFFFFF | 13.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2e1681; /* rgb */ color: rgb(46, 22, 129); /* oklch */ color: oklch(32.0% 0.163 282.3);
Tailwind
colors: {
custom: {
50: '#7358a7',
500: '#2e1681',
950: '#000000',
},
}SCSS
$custom: #2e1681; $custom-light: #7358a7; $custom-dark: #000000;
JSON
{
"hex": "#2e1681",
"rgb": {
"r": 46,
"g": 22,
"b": 129
},
"hsl": {
"h": 253.458,
"s": 70.861,
"l": 29.608
},
"oklch": {
"l": 0.32007,
"c": 0.16324,
"h": 282.3
},
"luminance": 0.0274
}Semantic roles & 50–950 ramp
primary
#2E1681
secondary
#9BB63D
accent
#EE3AC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F