#2E1762#2E1762
#2E1762 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.123 H 290.6°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1762 |
|---|---|
| RGB | rgb(46, 23, 98) |
| HSL | hsl(258, 62%, 24%) |
| HSV | hsv(258, 77%, 38%) |
| CMYK | cmyk(53.1%, 76.5%, 0%, 61.6%) |
| CIE-LAB | lab(15.88, 31.09, -40.29) |
| CIE-LCH | lch(15.88, 50.89, 307.65°) |
| OKLab | oklab(28.86% 0.0434 -0.1156) |
| OKLCH | oklch(28.86% 0.124 290.6) |
| XYZ | xyz(3.6371, 2.0753, 11.7618) |
| Luminance | 0.0208 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.79
Midnight Blue
#191970
ΔE00 4.45
Darkblue (survey)
#030764
ΔE00 5.82
Dark Royal Blue
#02066F
ΔE00 6.34
Dark Blue
#00035B
ΔE00 6.43
Indigo (survey)
#380282
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1762 #4B6217
analogous
#172562 #2E1762 #531762
triadic
#2E1762 #622E17 #17622E
tetradic
#2E1762 #621725 #4B6217 #176253
square
#2E1762 #621725 #4B6217 #176253
split-complementary
#2E1762 #625317 #256217
monochromatic
#0C0619 #170B30 #2E1762 #452394 #5D2EC5
Accessibility & contrast
On white
14.84
#2E1762 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#2E1762 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1762
14.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1762 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1762 | 1.00 | 14.84 | 1.42 | 14.84 |
| #FFFFFF | 14.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.84 | 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: #2e1762; /* rgb */ color: rgb(46, 23, 98); /* oklch */ color: oklch(28.9% 0.123 290.6);
Tailwind
colors: {
custom: {
50: '#6d568f',
500: '#2e1762',
950: '#000000',
},
}SCSS
$custom: #2e1762; $custom-light: #6d568f; $custom-dark: #000000;
JSON
{
"hex": "#2e1762",
"rgb": {
"r": 46,
"g": 23,
"b": 98
},
"hsl": {
"h": 258.4,
"s": 61.983,
"l": 23.725
},
"oklch": {
"l": 0.28857,
"c": 0.1235,
"h": 290.6
},
"luminance": 0.02075
}Semantic roles & 50–950 ramp
primary
#2E1762
secondary
#7C993C
accent
#E543B3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D