#2E1F73#2E1F73
#2E1F73 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.7% C 0.136 H 283.6°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1F73 |
|---|---|
| RGB | rgb(46, 31, 115) |
| HSL | hsl(251, 58%, 29%) |
| HSV | hsv(251, 73%, 45%) |
| CMYK | cmyk(60%, 73%, 0%, 54.9%) |
| CIE-LAB | lab(19.22, 31.86, -45.93) |
| CIE-LCH | lch(19.22, 55.89, 304.75°) |
| OKLab | oklab(31.74% 0.0321 -0.1322) |
| OKLCH | oklch(31.74% 0.136 283.6) |
| XYZ | xyz(4.7103, 2.7983, 16.5083) |
| Luminance | 0.0280 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.94
Indigo (survey)
#380282
ΔE00 5.93
Royal
#0C1793
ΔE00 6.11
Dark Royal Blue
#02066F
ΔE00 6.31
Darkblue (survey)
#030764
ΔE00 6.51
Dark Indigo
#1F0954
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1F73 #64731F
analogous
#1F3A73 #2E1F73 #581F73
triadic
#2E1F73 #732E1F #1F732E
tetradic
#2E1F73 #731F3A #64731F #1F7358
square
#2E1F73 #731F3A #64731F #1F7358
split-complementary
#2E1F73 #73581F #3A731F
monochromatic
#0A0618 #1B1243 #2E1F73 #412CA3 #5A41CC
Accessibility & contrast
On white
13.46
#2E1F73 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2E1F73 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1F73
13.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1F73 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1F73 | 1.00 | 13.46 | 1.56 | 13.46 |
| #FFFFFF | 13.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#093546
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2e1f73; /* rgb */ color: rgb(46, 31, 115); /* oklch */ color: oklch(31.7% 0.136 283.6);
Tailwind
colors: {
custom: {
50: '#6f5c9c',
500: '#2e1f73',
950: '#000000',
},
}SCSS
$custom: #2e1f73; $custom-light: #6f5c9c; $custom-dark: #000000;
JSON
{
"hex": "#2e1f73",
"rgb": {
"r": 46,
"g": 31,
"b": 115
},
"hsl": {
"h": 250.714,
"s": 57.534,
"l": 28.627
},
"oklch": {
"l": 0.3174,
"c": 0.13605,
"h": 283.6
},
"luminance": 0.02799
}Semantic roles & 50–950 ramp
primary
#2E1F73
secondary
#96A747
accent
#E147C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E