#2E1961#2E1961
#2E1961 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.1% C 0.120 H 290.3°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1961 |
|---|---|
| RGB | rgb(46, 25, 97) |
| HSL | hsl(258, 59%, 24%) |
| HSV | hsv(258, 74%, 38%) |
| CMYK | cmyk(52.6%, 74.2%, 0%, 62%) |
| CIE-LAB | lab(16.20, 29.61, -39.10) |
| CIE-LCH | lch(16.20, 49.04, 307.13°) |
| OKLab | oklab(29.06% 0.0415 -0.1122) |
| OKLCH | oklch(29.06% 0.12 290.3) |
| XYZ | xyz(3.6314, 2.1390, 11.5285) |
| Luminance | 0.0214 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.09
Midnight Blue
#191970
ΔE00 4.58
Darkblue (survey)
#030764
ΔE00 6.21
Dark Royal Blue
#02066F
ΔE00 6.79
Dark Blue
#00035B
ΔE00 6.80
Indigo (survey)
#380282
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1961 #4C6119
analogous
#192861 #2E1961 #521961
triadic
#2E1961 #612E19 #19612E
tetradic
#2E1961 #611928 #4C6119 #196152
square
#2E1961 #611928 #4C6119 #196152
split-complementary
#2E1961 #615219 #286119
monochromatic
#0C0618 #170C30 #2E1961 #452692 #5C32C2
Accessibility & contrast
On white
14.71
#2E1961 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#2E1961 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1961
14.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1961 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1961 | 1.00 | 14.71 | 1.43 | 14.71 |
| #FFFFFF | 14.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002760
Tritanopia (blue-blind)
#1D2B3B
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2e1961; /* rgb */ color: rgb(46, 25, 97); /* oklch */ color: oklch(29.1% 0.120 290.3);
Tailwind
colors: {
custom: {
50: '#6d578f',
500: '#2e1961',
950: '#000000',
},
}SCSS
$custom: #2e1961; $custom-light: #6d578f; $custom-dark: #000000;
JSON
{
"hex": "#2e1961",
"rgb": {
"r": 46,
"g": 25,
"b": 97
},
"hsl": {
"h": 257.5,
"s": 59.016,
"l": 23.922
},
"oklch": {
"l": 0.29058,
"c": 0.11961,
"h": 290.3
},
"luminance": 0.02139
}Semantic roles & 50–950 ramp
primary
#2E1961
secondary
#7D973F
accent
#E246B5
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D