#2E1973#2E1973
#2E1973 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.143 H 285.1°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1973 |
|---|---|
| RGB | rgb(46, 25, 115) |
| HSL | hsl(254, 64%, 27%) |
| HSV | hsv(254, 78%, 45%) |
| CMYK | cmyk(60%, 78.3%, 0%, 54.9%) |
| CIE-LAB | lab(17.98, 35.32, -47.96) |
| CIE-LCH | lch(17.98, 59.56, 306.37°) |
| OKLab | oklab(30.86% 0.0372 -0.1381) |
| OKLCH | oklch(30.86% 0.143 285.1) |
| XYZ | xyz(4.5679, 2.5136, 16.4608) |
| Luminance | 0.0251 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.94
Indigo (survey)
#380282
ΔE00 4.58
Dark Royal Blue
#02066F
ΔE00 5.26
Deep Blue
#040273
ΔE00 5.57
Darkblue (survey)
#030764
ΔE00 5.61
Royal
#0C1793
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1973 #5E7319
analogous
#193173 #2E1973 #5B1973
triadic
#2E1973 #732E19 #19732E
tetradic
#2E1973 #731931 #5E7319 #19735B
square
#2E1973 #731931 #5E7319 #19735B
split-complementary
#2E1973 #735B19 #317319
monochromatic
#0A0519 #1A0E41 #2E1973 #4224A5 #5934D3
Accessibility & contrast
On white
13.97
#2E1973 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2E1973 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1973
13.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1973 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1973 | 1.00 | 13.97 | 1.50 | 13.97 |
| #FFFFFF | 13.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#0A3245
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2e1973; /* rgb */ color: rgb(46, 25, 115); /* oklch */ color: oklch(30.9% 0.143 285.1);
Tailwind
colors: {
custom: {
50: '#70589c',
500: '#2e1973',
950: '#000000',
},
}SCSS
$custom: #2e1973; $custom-light: #70589c; $custom-dark: #000000;
JSON
{
"hex": "#2e1973",
"rgb": {
"r": 46,
"g": 25,
"b": 115
},
"hsl": {
"h": 254,
"s": 64.286,
"l": 27.451
},
"oklch": {
"l": 0.30863,
"c": 0.14303,
"h": 285.1
},
"luminance": 0.02514
}Semantic roles & 50–950 ramp
primary
#2E1973
secondary
#90A840
accent
#E741C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E