#2E1862#2E1862
#2E1862 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.122 H 290.3°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1862 |
|---|---|
| RGB | rgb(46, 24, 98) |
| HSL | hsl(258, 61%, 24%) |
| HSV | hsv(258, 76%, 38%) |
| CMYK | cmyk(53.1%, 75.5%, 0%, 61.6%) |
| CIE-LAB | lab(16.08, 30.51, -39.95) |
| CIE-LCH | lch(16.08, 50.27, 307.37°) |
| OKLab | oklab(29% 0.0424 -0.1147) |
| OKLCH | oklch(29% 0.122 290.3) |
| XYZ | xyz(3.6573, 2.1158, 11.7686) |
| Luminance | 0.0212 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.95
Midnight Blue
#191970
ΔE00 4.42
Darkblue (survey)
#030764
ΔE00 5.96
Dark Royal Blue
#02066F
ΔE00 6.49
Dark Blue
#00035B
ΔE00 6.58
Indigo (survey)
#380282
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1862 #4C6218
analogous
#182762 #2E1862 #531862
triadic
#2E1862 #622E18 #18622E
tetradic
#2E1862 #621827 #4C6218 #186253
square
#2E1862 #621827 #4C6218 #186253
split-complementary
#2E1862 #625318 #276218
monochromatic
#0C0619 #170C31 #2E1862 #452493 #5C30C4
Accessibility & contrast
On white
14.76
#2E1862 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#2E1862 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1862
14.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1862 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1862 | 1.00 | 14.76 | 1.42 | 14.76 |
| #FFFFFF | 14.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002661
Tritanopia (blue-blind)
#1C2B3B
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2e1862; /* rgb */ color: rgb(46, 24, 98); /* oklch */ color: oklch(29.0% 0.122 290.3);
Tailwind
colors: {
custom: {
50: '#6d578f',
500: '#2e1862',
950: '#000000',
},
}SCSS
$custom: #2e1862; $custom-light: #6d578f; $custom-dark: #000000;
JSON
{
"hex": "#2e1862",
"rgb": {
"r": 46,
"g": 24,
"b": 98
},
"hsl": {
"h": 257.838,
"s": 60.656,
"l": 23.922
},
"oklch": {
"l": 0.29004,
"c": 0.12223,
"h": 290.3
},
"luminance": 0.02116
}Semantic roles & 50–950 ramp
primary
#2E1862
secondary
#7D983E
accent
#E444B4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D