#2E1756#2E1756
#2E1756 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.108 H 295.2°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1756 |
|---|---|
| RGB | rgb(46, 23, 86) |
| HSL | hsl(262, 58%, 21%) |
| HSV | hsv(262, 73%, 34%) |
| CMYK | cmyk(46.5%, 73.3%, 0%, 66.3%) |
| CIE-LAB | lab(14.76, 27.36, -34.07) |
| CIE-LCH | lch(14.76, 43.70, 308.76°) |
| OKLab | oklab(27.72% 0.0458 -0.0974) |
| OKLCH | oklch(27.72% 0.108 295.2) |
| XYZ | xyz(3.1124, 1.8654, 8.9984) |
| Luminance | 0.0187 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.01
Midnight Blue
#191970
ΔE00 6.60
Night Blue
#040348
ΔE00 7.01
Dark Violet
#34013F
ΔE00 7.25
Dark Purple
#35063E
ΔE00 7.26
Midnight Purple
#280137
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1756 #3F5617
analogous
#172056 #2E1756 #4E1756
triadic
#2E1756 #562E17 #17562E
tetradic
#2E1756 #561720 #3F5617 #17564E
square
#2E1756 #561720 #3F5617 #17564E
split-complementary
#2E1756 #564E17 #205617
monochromatic
#0D0618 #140A26 #2E1756 #482486 #6231B7
Accessibility & contrast
On white
15.29
#2E1756 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.37
#2E1756 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1756
15.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1756 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1756 | 1.00 | 15.29 | 1.37 | 15.29 |
| #FFFFFF | 15.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#232634
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #2e1756; /* rgb */ color: rgb(46, 23, 86); /* oklch */ color: oklch(27.7% 0.108 295.2);
Tailwind
colors: {
custom: {
50: '#6b5686',
500: '#2e1756',
950: '#000000',
},
}SCSS
$custom: #2e1756; $custom-light: #6b5686; $custom-dark: #000000;
JSON
{
"hex": "#2e1756",
"rgb": {
"r": 46,
"g": 23,
"b": 86
},
"hsl": {
"h": 261.905,
"s": 57.798,
"l": 21.373
},
"oklch": {
"l": 0.27718,
"c": 0.10763,
"h": 295.2
},
"luminance": 0.01866
}Semantic roles & 50–950 ramp
primary
#2E1756
secondary
#6F8D3C
accent
#E147A9
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C