#2E1772#2E1772
#2E1772 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.144 H 285.7°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1772 |
|---|---|
| RGB | rgb(46, 23, 114) |
| HSL | hsl(255, 66%, 27%) |
| HSV | hsv(255, 80%, 45%) |
| CMYK | cmyk(59.6%, 79.8%, 0%, 55.3%) |
| CIE-LAB | lab(17.50, 36.08, -48.10) |
| CIE-LCH | lch(17.50, 60.13, 306.87°) |
| OKLab | oklab(30.49% 0.039 -0.1385) |
| OKLCH | oklch(30.49% 0.144 285.7) |
| XYZ | xyz(4.4695, 2.4083, 16.1457) |
| Luminance | 0.0241 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.10
Indigo (survey)
#380282
ΔE00 4.31
Dark Royal Blue
#02066F
ΔE00 5.01
Deep Blue
#040273
ΔE00 5.29
Darkblue (survey)
#030764
ΔE00 5.36
Dark Indigo
#1F0954
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1772 #5B7217
analogous
#172E72 #2E1772 #5C1772
triadic
#2E1772 #722E17 #17722E
tetradic
#2E1772 #72172E #5B7217 #17725C
square
#2E1772 #72172E #5B7217 #17725C
split-complementary
#2E1772 #725C17 #2E7217
monochromatic
#0A0519 #190D3F #2E1772 #4321A5 #592ED5
Accessibility & contrast
On white
14.17
#2E1772 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#2E1772 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1772
14.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1772 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1772 | 1.00 | 14.17 | 1.48 | 14.17 |
| #FFFFFF | 14.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#0C3144
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2e1772; /* rgb */ color: rgb(46, 23, 114); /* oklch */ color: oklch(30.5% 0.144 285.7);
Tailwind
colors: {
custom: {
50: '#70579b',
500: '#2e1772',
950: '#000000',
},
}SCSS
$custom: #2e1772; $custom-light: #70579b; $custom-dark: #000000;
JSON
{
"hex": "#2e1772",
"rgb": {
"r": 46,
"g": 23,
"b": 114
},
"hsl": {
"h": 255.165,
"s": 66.423,
"l": 26.863
},
"oklch": {
"l": 0.30493,
"c": 0.14392,
"h": 285.7
},
"luminance": 0.02409
}Semantic roles & 50–950 ramp
primary
#2E1772
secondary
#8DA83D
accent
#E93EBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E