#2E159E#2E159E
#2E159E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.3% C 0.198 H 277.4°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).
Color values
| HEX | #2E159E |
|---|---|
| RGB | rgb(46, 21, 158) |
| HSL | hsl(251, 77%, 35%) |
| HSV | hsv(251, 87%, 62%) |
| CMYK | cmyk(70.9%, 86.7%, 0%, 38%) |
| CIE-LAB | lab(22.25, 50.20, -67.90) |
| CIE-LCH | lch(22.25, 84.44, 306.48°) |
| OKLab | oklab(35.26% 0.0254 -0.1961) |
| OKLCH | oklch(35.26% 0.198 277.4) |
| XYZ | xyz(7.5644, 3.5851, 32.6345) |
| Luminance | 0.0359 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 2.76
Indigo Blue
#3A18B1
ΔE00 3.04
Ultramarine
#2000B1
ΔE00 3.04
Royal Blue (survey)
#0504AA
ΔE00 3.05
Royal
#0C1793
ΔE00 3.14
Indigo (survey)
#380282
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E159E #859E15
analogous
#15409E #2E159E #72159E
triadic
#2E159E #9E2E15 #159E2E
tetradic
#2E159E #9E1540 #859E15 #159E72
square
#2E159E #9E1540 #859E15 #159E72
split-complementary
#2E159E #9E7215 #409E15
monochromatic
#0F0732 #1E0E68 #2E159E #3E1CD4 #6447E7
Accessibility & contrast
On white
12.23
#2E159E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#2E159E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E159E
12.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E159E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E159E | 1.00 | 12.23 | 1.72 | 12.23 |
| #FFFFFF | 12.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003AA2
Deuteranopia (green-blind)
#002F9C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2e159e; /* rgb */ color: rgb(46, 21, 158); /* oklch */ color: oklch(35.3% 0.198 277.4);
Tailwind
colors: {
custom: {
50: '#7959bc',
500: '#2e159e',
950: '#000000',
},
}SCSS
$custom: #2e159e; $custom-light: #7959bc; $custom-dark: #000000;
JSON
{
"hex": "#2e159e",
"rgb": {
"r": 46,
"g": 21,
"b": 158
},
"hsl": {
"h": 250.949,
"s": 76.536,
"l": 35.098
},
"oklch": {
"l": 0.35261,
"c": 0.19775,
"h": 277.4
},
"luminance": 0.03586
}Semantic roles & 50–950 ramp
primary
#2E159E
secondary
#B0C747
accent
#F335D0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981