#2E1A90#2E1A90
#2E1A90 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.178 H 279.0°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1A90 |
|---|---|
| RGB | rgb(46, 26, 144) |
| HSL | hsl(250, 69%, 33%) |
| HSV | hsv(250, 82%, 56%) |
| CMYK | cmyk(68.1%, 81.9%, 0%, 43.5%) |
| CIE-LAB | lab(21.33, 43.86, -60.79) |
| CIE-LCH | lch(21.33, 74.96, 305.81°) |
| OKLab | oklab(34.15% 0.0279 -0.1756) |
| OKLCH | oklch(34.15% 0.178 279) |
| XYZ | xyz(6.5285, 3.3327, 26.6794) |
| Luminance | 0.0333 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.66
Cobalt Blue
#030AA7
ΔE00 4.21
Indigo (survey)
#380282
ΔE00 4.31
Royal Blue (survey)
#0504AA
ΔE00 4.65
Indigo Blue
#3A18B1
ΔE00 4.80
Darkblue
#00008B
ΔE00 4.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1A90 #7C901A
analogous
#1A4190 #2E1A90 #691A90
triadic
#2E1A90 #902E1A #1A902E
tetradic
#2E1A90 #901A41 #7C901A #1A9069
square
#2E1A90 #901A41 #7C901A #1A9069
split-complementary
#2E1A90 #90691A #41901A
monochromatic
#0D0728 #1D115C #2E1A90 #3F23C4 #6047DE
Accessibility & contrast
On white
12.60
#2E1A90 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#2E1A90 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1A90
12.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1A90 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1A90 | 1.00 | 12.60 | 1.67 | 12.60 |
| #FFFFFF | 12.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#002E8E
Tritanopia (blue-blind)
#003E56
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2e1a90; /* rgb */ color: rgb(46, 26, 144); /* oklch */ color: oklch(34.1% 0.178 279.0);
Tailwind
colors: {
custom: {
50: '#765bb2',
500: '#2e1a90',
950: '#000000',
},
}SCSS
$custom: #2e1a90; $custom-light: #765bb2; $custom-dark: #000000;
JSON
{
"hex": "#2e1a90",
"rgb": {
"r": 46,
"g": 26,
"b": 144
},
"hsl": {
"h": 250.169,
"s": 69.412,
"l": 33.333
},
"oklch": {
"l": 0.34146,
"c": 0.17776,
"h": 279
},
"luminance": 0.03333
}Semantic roles & 50–950 ramp
primary
#2E1A90
secondary
#ABBF47
accent
#EC3CCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980