#2E15A0#2E15A0
#2E15A0 is a dark, highly saturated violet. Relative luminance 0.037; OKLCH L 35.5% C 0.200 H 277.1°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).
Color values
| HEX | #2E15A0 |
|---|---|
| RGB | rgb(46, 21, 160) |
| HSL | hsl(251, 77%, 35%) |
| HSV | hsv(251, 87%, 63%) |
| CMYK | cmyk(71.2%, 86.9%, 0%, 37.3%) |
| CIE-LAB | lab(22.49, 50.78, -68.71) |
| CIE-LCH | lch(22.49, 85.44, 306.46°) |
| OKLab | oklab(35.5% 0.0247 -0.1985) |
| OKLCH | oklch(35.5% 0.2 277.1) |
| XYZ | xyz(7.7380, 3.6545, 33.5485) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 2.70
Indigo Blue
#3A18B1
ΔE00 2.80
Ultramarine
#2000B1
ΔE00 2.86
Royal Blue (survey)
#0504AA
ΔE00 2.96
Royal
#0C1793
ΔE00 3.29
Indigo (survey)
#380282
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E15A0 #87A015
analogous
#1542A0 #2E15A0 #7315A0
triadic
#2E15A0 #A02E15 #15A02E
tetradic
#2E15A0 #A01542 #87A015 #15A073
square
#2E15A0 #A01542 #87A015 #15A073
split-complementary
#2E15A0 #A07315 #42A015
monochromatic
#0F0734 #1E0E6A #2E15A0 #3E1CD6 #6548E7
Accessibility & contrast
On white
12.13
#2E15A0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2E15A0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E15A0
12.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E15A0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E15A0 | 1.00 | 12.13 | 1.73 | 12.13 |
| #FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003BA4
Deuteranopia (green-blind)
#00309E
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2e15a0; /* rgb */ color: rgb(46, 21, 160); /* oklch */ color: oklch(35.5% 0.200 277.1);
Tailwind
colors: {
custom: {
50: '#7a5abe',
500: '#2e15a0',
950: '#000000',
},
}SCSS
$custom: #2e15a0; $custom-light: #7a5abe; $custom-dark: #000000;
JSON
{
"hex": "#2e15a0",
"rgb": {
"r": 46,
"g": 21,
"b": 160
},
"hsl": {
"h": 250.791,
"s": 76.796,
"l": 35.49
},
"oklch": {
"l": 0.35499,
"c": 0.20001,
"h": 277.1
},
"luminance": 0.03655
}Semantic roles & 50–950 ramp
primary
#2E15A0
secondary
#B1C849
accent
#F334D1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981