#2E1C7F#2E1C7F
#2E1C7F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.155 H 281.8°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1C7F |
|---|---|
| RGB | rgb(46, 28, 127) |
| HSL | hsl(251, 64%, 30%) |
| HSV | hsv(251, 78%, 50%) |
| CMYK | cmyk(63.8%, 78%, 0%, 50.2%) |
| CIE-LAB | lab(19.82, 37.50, -52.62) |
| CIE-LCH | lch(19.82, 64.61, 305.48°) |
| OKLab | oklab(32.53% 0.0317 -0.1518) |
| OKLCH | oklch(32.53% 0.155 281.8) |
| XYZ | xyz(5.3715, 2.9433, 20.3596) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.47
Royal
#0C1793
ΔE00 4.13
Indigo (survey)
#380282
ΔE00 4.39
Darkblue
#00008B
ΔE00 5.73
Navy
#000080
ΔE00 5.80
Dark Royal Blue
#02066F
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1C7F #6D7F1C
analogous
#1C3B7F #2E1C7F #5F1C7F
triadic
#2E1C7F #7F2E1C #1C7F2E
tetradic
#2E1C7F #7F1C3B #6D7F1C #1C7F5F
square
#2E1C7F #7F1C3B #6D7F1C #1C7F5F
split-complementary
#2E1C7F #7F5F1C #3B7F1C
monochromatic
#0A061B #1C114D #2E1C7F #4027B1 #5B40D5
Accessibility & contrast
On white
13.22
#2E1C7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2E1C7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1C7F
13.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1C7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1C7F | 1.00 | 13.22 | 1.59 | 13.22 |
| #FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2e1c7f; /* rgb */ color: rgb(46, 28, 127); /* oklch */ color: oklch(32.5% 0.155 281.8);
Tailwind
colors: {
custom: {
50: '#725ba5',
500: '#2e1c7f',
950: '#000000',
},
}SCSS
$custom: #2e1c7f; $custom-light: #725ba5; $custom-dark: #000000;
JSON
{
"hex": "#2e1c7f",
"rgb": {
"r": 46,
"g": 28,
"b": 127
},
"hsl": {
"h": 250.909,
"s": 63.871,
"l": 30.392
},
"oklch": {
"l": 0.32533,
"c": 0.15503,
"h": 281.8
},
"luminance": 0.02944
}Semantic roles & 50–950 ramp
primary
#2E1C7F
secondary
#9FB344
accent
#E741C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F