#2E1490#2E1490
#2E1490 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.182 H 279.7°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1490 |
|---|---|
| RGB | rgb(46, 20, 144) |
| HSL | hsl(253, 76%, 32%) |
| HSV | hsv(253, 86%, 56%) |
| CMYK | cmyk(68.1%, 86.1%, 0%, 43.5%) |
| CIE-LAB | lab(20.42, 46.54, -62.30) |
| CIE-LCH | lch(20.42, 77.77, 306.76°) |
| OKLab | oklab(33.52% 0.0306 -0.1798) |
| OKLCH | oklch(33.52% 0.182 279.7) |
| XYZ | xyz(6.4093, 3.0942, 26.6396) |
| Luminance | 0.0309 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.76
Indigo (survey)
#380282
ΔE00 3.47
Cobalt Blue
#030AA7
ΔE00 3.81
Royal Blue (survey)
#0504AA
ΔE00 4.16
Darkblue
#00008B
ΔE00 4.19
Ultramarine
#2000B1
ΔE00 4.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1490 #769014
analogous
#143890 #2E1490 #6C1490
triadic
#2E1490 #902E14 #14902E
tetradic
#2E1490 #901438 #769014 #14906C
square
#2E1490 #901438 #769014 #14906C
split-complementary
#2E1490 #906C14 #389014
monochromatic
#0C0525 #1D0D5A #2E1490 #3F1BC6 #5E3BE4
Accessibility & contrast
On white
12.97
#2E1490 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2E1490 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1490
12.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1490 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1490 | 1.00 | 12.97 | 1.62 | 12.97 |
| #FFFFFF | 12.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002C8E
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2e1490; /* rgb */ color: rgb(46, 20, 144); /* oklch */ color: oklch(33.5% 0.182 279.7);
Tailwind
colors: {
custom: {
50: '#7658b2',
500: '#2e1490',
950: '#000000',
},
}SCSS
$custom: #2e1490; $custom-light: #7658b2; $custom-dark: #000000;
JSON
{
"hex": "#2e1490",
"rgb": {
"r": 46,
"g": 20,
"b": 144
},
"hsl": {
"h": 252.581,
"s": 75.61,
"l": 32.157
},
"oklch": {
"l": 0.33517,
"c": 0.18244,
"h": 279.7
},
"luminance": 0.03095
}Semantic roles & 50–950 ramp
primary
#2E1490
secondary
#A7C33D
accent
#F236CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980