#2E1767#2E1767
#2E1767 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.130 H 288.9°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1767 |
|---|---|
| RGB | rgb(46, 23, 103) |
| HSL | hsl(257, 63%, 25%) |
| HSV | hsv(257, 78%, 40%) |
| CMYK | cmyk(55.3%, 77.7%, 0%, 59.6%) |
| CIE-LAB | lab(16.37, 32.65, -42.79) |
| CIE-LCH | lch(16.37, 53.82, 307.35°) |
| OKLab | oklab(29.36% 0.0421 -0.123) |
| OKLCH | oklch(29.36% 0.13 288.9) |
| XYZ | xyz(3.8806, 2.1727, 13.0442) |
| Luminance | 0.0217 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.79
Dark Indigo
#1F0954
ΔE00 4.20
Darkblue (survey)
#030764
ΔE00 5.47
Dark Royal Blue
#02066F
ΔE00 5.75
Indigo (survey)
#380282
ΔE00 5.79
Deep Blue
#040273
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1767 #506717
analogous
#172867 #2E1767 #561767
triadic
#2E1767 #672E17 #17672E
tetradic
#2E1767 #671728 #506717 #176756
square
#2E1767 #671728 #506717 #176756
split-complementary
#2E1767 #675617 #286717
monochromatic
#0B0619 #180C35 #2E1767 #442299 #5B2DCB
Accessibility & contrast
On white
14.64
#2E1767 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#2E1767 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1767
14.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1767 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1767 | 1.00 | 14.64 | 1.43 | 14.64 |
| #FFFFFF | 14.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#182D3D
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2e1767; /* rgb */ color: rgb(46, 23, 103); /* oklch */ color: oklch(29.4% 0.130 288.9);
Tailwind
colors: {
custom: {
50: '#6e5793',
500: '#2e1767',
950: '#000000',
},
}SCSS
$custom: #2e1767; $custom-light: #6e5793; $custom-dark: #000000;
JSON
{
"hex": "#2e1767",
"rgb": {
"r": 46,
"g": 23,
"b": 103
},
"hsl": {
"h": 257.25,
"s": 63.492,
"l": 24.706
},
"oklch": {
"l": 0.29356,
"c": 0.12997,
"h": 288.9
},
"luminance": 0.02173
}Semantic roles & 50–950 ramp
primary
#2E1767
secondary
#819D3D
accent
#E741B7
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E