#2E1656#2E1656
#2E1656 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.109 H 295.5°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1656 |
|---|---|
| RGB | rgb(46, 22, 86) |
| HSL | hsl(263, 59%, 21%) |
| HSV | hsv(263, 74%, 34%) |
| CMYK | cmyk(46.5%, 74.4%, 0%, 66.3%) |
| CIE-LAB | lab(14.55, 27.95, -34.42) |
| CIE-LCH | lch(14.55, 44.34, 309.08°) |
| OKLab | oklab(27.56% 0.047 -0.0984) |
| OKLCH | oklch(27.56% 0.109 295.5) |
| XYZ | xyz(3.0929, 1.8265, 8.9919) |
| Luminance | 0.0183 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.80
Midnight Blue
#191970
ΔE00 6.59
Night Blue
#040348
ΔE00 6.90
Dark Violet
#34013F
ΔE00 7.09
Dark Purple
#35063E
ΔE00 7.15
Midnight Purple
#280137
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1656 #3E5616
analogous
#161E56 #2E1656 #4E1656
triadic
#2E1656 #562E16 #16562E
tetradic
#2E1656 #56161E #3E5616 #16564E
square
#2E1656 #56161E #3E5616 #16564E
split-complementary
#2E1656 #564E16 #1E5616
monochromatic
#0D0618 #140A25 #2E1656 #482287 #622FB7
Accessibility & contrast
On white
15.38
#2E1656 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.37
#2E1656 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1656
15.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1656 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1656 | 1.00 | 15.38 | 1.37 | 15.38 |
| #FFFFFF | 15.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#232634
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #2e1656; /* rgb */ color: rgb(46, 22, 86); /* oklch */ color: oklch(27.6% 0.109 295.5);
Tailwind
colors: {
custom: {
50: '#6b5586',
500: '#2e1656',
950: '#000000',
},
}SCSS
$custom: #2e1656; $custom-light: #6b5586; $custom-dark: #000000;
JSON
{
"hex": "#2e1656",
"rgb": {
"r": 46,
"g": 22,
"b": 86
},
"hsl": {
"h": 262.5,
"s": 59.259,
"l": 21.176
},
"oklch": {
"l": 0.27564,
"c": 0.10906,
"h": 295.5
},
"luminance": 0.01827
}Semantic roles & 50–950 ramp
primary
#2E1656
secondary
#6E8D3A
accent
#E245A8
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C