#2E158E#2E158E
#2E158E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.179 H 279.9°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).
Color values
| HEX | #2E158E |
|---|---|
| RGB | rgb(46, 21, 142) |
| HSL | hsl(252, 74%, 32%) |
| HSV | hsv(252, 85%, 56%) |
| CMYK | cmyk(67.6%, 85.2%, 0%, 44.3%) |
| CIE-LAB | lab(20.32, 45.54, -61.21) |
| CIE-LCH | lch(20.32, 76.29, 306.64°) |
| OKLab | oklab(33.38% 0.0309 -0.1767) |
| OKLCH | oklch(33.38% 0.179 279.9) |
| XYZ | xyz(6.2758, 3.0697, 25.8477) |
| Luminance | 0.0307 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.78
Indigo (survey)
#380282
ΔE00 3.43
Cobalt Blue
#030AA7
ΔE00 4.08
Darkblue
#00008B
ΔE00 4.26
Royal Blue (survey)
#0504AA
ΔE00 4.45
Ultramarine
#2000B1
ΔE00 4.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E158E #758E15
analogous
#15388E #2E158E #6B158E
triadic
#2E158E #8E2E15 #158E2E
tetradic
#2E158E #8E1538 #758E15 #158E6B
square
#2E158E #8E1538 #758E15 #158E6B
split-complementary
#2E158E #8E6B15 #388E15
monochromatic
#0B0523 #1D0D59 #2E158E #3F1DC3 #5E3BE2
Accessibility & contrast
On white
13.01
#2E158E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2E158E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E158E
13.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E158E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E158E | 1.00 | 13.01 | 1.61 | 13.01 |
| #FFFFFF | 13.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2e158e; /* rgb */ color: rgb(46, 21, 142); /* oklch */ color: oklch(33.4% 0.179 279.9);
Tailwind
colors: {
custom: {
50: '#7658b0',
500: '#2e158e',
950: '#000000',
},
}SCSS
$custom: #2e158e; $custom-light: #7658b0; $custom-dark: #000000;
JSON
{
"hex": "#2e158e",
"rgb": {
"r": 46,
"g": 21,
"b": 142
},
"hsl": {
"h": 252.397,
"s": 74.233,
"l": 31.961
},
"oklch": {
"l": 0.33382,
"c": 0.17939,
"h": 279.9
},
"luminance": 0.0307
}Semantic roles & 50–950 ramp
primary
#2E158E
secondary
#A6C23D
accent
#F137CA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980