#2E1A72#2E1A72
#2E1A72 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.141 H 285.1°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1A72 |
|---|---|
| RGB | rgb(46, 26, 114) |
| HSL | hsl(254, 63%, 27%) |
| HSV | hsv(254, 77%, 45%) |
| CMYK | cmyk(59.6%, 77.2%, 0%, 55.3%) |
| CIE-LAB | lab(18.07, 34.45, -47.16) |
| CIE-LCH | lch(18.07, 58.40, 306.15°) |
| OKLab | oklab(30.9% 0.0366 -0.1358) |
| OKLCH | oklch(30.9% 0.141 285.1) |
| XYZ | xyz(4.5324, 2.5343, 16.1667) |
| Luminance | 0.0254 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.89
Indigo (survey)
#380282
ΔE00 4.89
Dark Royal Blue
#02066F
ΔE00 5.44
Darkblue (survey)
#030764
ΔE00 5.71
Deep Blue
#040273
ΔE00 5.79
Dark Indigo
#1F0954
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1A72 #5E721A
analogous
#1A3272 #2E1A72 #5A1A72
triadic
#2E1A72 #722E1A #1A722E
tetradic
#2E1A72 #721A32 #5E721A #1A725A
square
#2E1A72 #721A32 #5E721A #1A725A
split-complementary
#2E1A72 #725A1A #32721A
monochromatic
#0A0619 #1A0F40 #2E1A72 #4225A4 #5935D1
Accessibility & contrast
On white
13.93
#2E1A72 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2E1A72 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1A72
13.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1A72 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1A72 | 1.00 | 13.93 | 1.51 | 13.93 |
| #FFFFFF | 13.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#0B3244
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2e1a72; /* rgb */ color: rgb(46, 26, 114); /* oklch */ color: oklch(30.9% 0.141 285.1);
Tailwind
colors: {
custom: {
50: '#70599b',
500: '#2e1a72',
950: '#000000',
},
}SCSS
$custom: #2e1a72; $custom-light: #70599b; $custom-dark: #000000;
JSON
{
"hex": "#2e1a72",
"rgb": {
"r": 46,
"g": 26,
"b": 114
},
"hsl": {
"h": 253.636,
"s": 62.857,
"l": 27.451
},
"oklch": {
"l": 0.30897,
"c": 0.14064,
"h": 285.1
},
"luminance": 0.02535
}Semantic roles & 50–950 ramp
primary
#2E1A72
secondary
#90A741
accent
#E642C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E