#2E1765#2E1765
#2E1765 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.127 H 289.5°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1765 |
|---|---|
| RGB | rgb(46, 23, 101) |
| HSL | hsl(258, 63%, 24%) |
| HSV | hsv(258, 77%, 40%) |
| CMYK | cmyk(54.5%, 77.2%, 0%, 60.4%) |
| CIE-LAB | lab(16.17, 32.02, -41.79) |
| CIE-LCH | lch(16.17, 52.65, 307.46°) |
| OKLab | oklab(29.15% 0.0426 -0.12) |
| OKLCH | oklch(29.15% 0.127 289.5) |
| XYZ | xyz(3.7814, 2.1331, 12.5219) |
| Luminance | 0.0213 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.01
Midnight Blue
#191970
ΔE00 4.03
Darkblue (survey)
#030764
ΔE00 5.59
Dark Royal Blue
#02066F
ΔE00 5.97
Indigo (survey)
#380282
ΔE00 6.11
Dark Blue
#00035B
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1765 #4E6517
analogous
#172765 #2E1765 #551765
triadic
#2E1765 #652E17 #17652E
tetradic
#2E1765 #651727 #4E6517 #176555
square
#2E1765 #651727 #4E6517 #176555
split-complementary
#2E1765 #655517 #276517
monochromatic
#0B0619 #170C33 #2E1765 #452297 #5B2EC9
Accessibility & contrast
On white
14.72
#2E1765 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#2E1765 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1765
14.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1765 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1765 | 1.00 | 14.72 | 1.43 | 14.72 |
| #FFFFFF | 14.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A67
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#1A2C3C
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2e1765; /* rgb */ color: rgb(46, 23, 101); /* oklch */ color: oklch(29.2% 0.127 289.5);
Tailwind
colors: {
custom: {
50: '#6d5692',
500: '#2e1765',
950: '#000000',
},
}SCSS
$custom: #2e1765; $custom-light: #6d5692; $custom-dark: #000000;
JSON
{
"hex": "#2e1765",
"rgb": {
"r": 46,
"g": 23,
"b": 101
},
"hsl": {
"h": 257.692,
"s": 62.903,
"l": 24.314
},
"oklch": {
"l": 0.29155,
"c": 0.12739,
"h": 289.5
},
"luminance": 0.02133
}Semantic roles & 50–950 ramp
primary
#2E1765
secondary
#7F9B3C
accent
#E642B6
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E