#2E1971#2E1971
#2E1971 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.140 H 285.6°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1971 |
|---|---|
| RGB | rgb(46, 25, 113) |
| HSL | hsl(254, 64%, 27%) |
| HSV | hsv(254, 78%, 44%) |
| CMYK | cmyk(59.3%, 77.9%, 0%, 55.7%) |
| CIE-LAB | lab(17.77, 34.69, -47.00) |
| CIE-LCH | lch(17.77, 58.42, 306.43°) |
| OKLab | oklab(30.65% 0.0377 -0.1353) |
| OKLCH | oklch(30.65% 0.14 285.6) |
| XYZ | xyz(4.4541, 2.4681, 15.8613) |
| Luminance | 0.0247 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.96
Indigo (survey)
#380282
ΔE00 4.80
Dark Royal Blue
#02066F
ΔE00 5.32
Darkblue (survey)
#030764
ΔE00 5.56
Dark Indigo
#1F0954
ΔE00 5.59
Deep Blue
#040273
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1971 #5C7119
analogous
#193071 #2E1971 #5A1971
triadic
#2E1971 #712E19 #19712E
tetradic
#2E1971 #711930 #5C7119 #19715A
square
#2E1971 #711930 #5C7119 #19715A
split-complementary
#2E1971 #715A19 #307119
monochromatic
#0A0619 #1A0E3F #2E1971 #4224A3 #5933D2
Accessibility & contrast
On white
14.06
#2E1971 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2E1971 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1971
14.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1971 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1971 | 1.00 | 14.06 | 1.49 | 14.06 |
| #FFFFFF | 14.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#0D3144
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2e1971; /* rgb */ color: rgb(46, 25, 113); /* oklch */ color: oklch(30.7% 0.140 285.6);
Tailwind
colors: {
custom: {
50: '#6f589b',
500: '#2e1971',
950: '#000000',
},
}SCSS
$custom: #2e1971; $custom-light: #6f589b; $custom-dark: #000000;
JSON
{
"hex": "#2e1971",
"rgb": {
"r": 46,
"g": 25,
"b": 113
},
"hsl": {
"h": 254.318,
"s": 63.768,
"l": 27.059
},
"oklch": {
"l": 0.30655,
"c": 0.14049,
"h": 285.6
},
"luminance": 0.02468
}Semantic roles & 50–950 ramp
primary
#2E1971
secondary
#8EA640
accent
#E741BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E