#2E1683#2E1683
#2E1683 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.166 H 281.9°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1683 |
|---|---|
| RGB | rgb(46, 22, 131) |
| HSL | hsl(253, 71%, 30%) |
| HSV | hsv(253, 83%, 51%) |
| CMYK | cmyk(64.9%, 83.2%, 0%, 48.6%) |
| CIE-LAB | lab(19.19, 41.80, -56.17) |
| CIE-LCH | lch(19.19, 70.02, 306.65°) |
| OKLab | oklab(32.23% 0.0342 -0.1621) |
| OKLCH | oklch(32.23% 0.166 281.9) |
| XYZ | xyz(5.5091, 2.7929, 21.7171) |
| Luminance | 0.0279 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.12
Royal
#0C1793
ΔE00 3.58
Midnight Blue
#191970
ΔE00 4.21
Darkblue
#00008B
ΔE00 4.56
Navy
#000080
ΔE00 4.79
Deep Blue
#040273
ΔE00 5.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1683 #6B8316
analogous
#163483 #2E1683 #651683
triadic
#2E1683 #832E16 #16832E
tetradic
#2E1683 #831634 #6B8316 #168365
square
#2E1683 #831634 #6B8316 #168365
split-complementary
#2E1683 #836516 #348316
monochromatic
#09041A #1C0D4F #2E1683 #401FB7 #5B36DD
Accessibility & contrast
On white
13.47
#2E1683 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2E1683 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1683
13.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1683 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1683 | 1.00 | 13.47 | 1.56 | 13.47 |
| #FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002B81
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2e1683; /* rgb */ color: rgb(46, 22, 131); /* oklch */ color: oklch(32.2% 0.166 281.9);
Tailwind
colors: {
custom: {
50: '#7358a8',
500: '#2e1683',
950: '#000000',
},
}SCSS
$custom: #2e1683; $custom-light: #7358a8; $custom-dark: #000000;
JSON
{
"hex": "#2e1683",
"rgb": {
"r": 46,
"g": 22,
"b": 131
},
"hsl": {
"h": 253.211,
"s": 71.242,
"l": 30
},
"oklch": {
"l": 0.32231,
"c": 0.16563,
"h": 281.9
},
"luminance": 0.02793
}Semantic roles & 50–950 ramp
primary
#2E1683
secondary
#9DB73D
accent
#EE3AC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F