Skip to content

#2e1d3f

a deep, soft violet · warm · closest name: black

RGB
46, 29, 63
HSL
270°, 37%, 18%
CMYK
27, 54, 0, 75
Luminance
0.0182

Every format

HEX#2e1d3f
RGBrgb(46, 29, 63)
HSLhsl(270, 37%, 18%)
CMYKcmyk(27%, 54%, 0%, 75%)
LABlab(14.5 16.5 -18.7)
LCHlch(14.5 24.9 311.5)
OKLCHoklch(0.270 0.064 305.6)

Copy-ready code

/* CSS */
color: #2e1d3f;
background-color: #2e1d3f;
/* Tailwind (arbitrary) */
class="text-[#2e1d3f] bg-[#2e1d3f]"
/* SCSS */
$brand: #2e1d3f;
/* SwiftUI */
Color(red: 0.180, green: 0.114, blue: 0.247)
/* Android */
Color.parseColor("#2e1d3f")

Accessibility — WCAG contrast

Aa
#2e1d3f on white: 15.40:1
AA ✓ pass · AA-large · AAA
Aa
#2e1d3f on black: 1.36:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.0%
Green11.4%
Blue24.7%

CMYK percentages

Cyan27.0%
Magenta54.0%
Yellow0.0%
Key (black)75.3%

Color previews

#2e1d3f text on a black background

contrast 1.36:1

Card sample

#2e1d3f text on a white background

contrast 15.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2e1d3f;
Background color
Panel with #2e1d3f background
background-color: #2e1d3f;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #2e1d3f;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(46, 29, 63, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(46, 29, 63, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2e1d3f;
background: linear-gradient(135deg, #2e1d3f, #3F1D39);

Monochromatic scale

Palettes built from #2e1d3f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2e1d3f in the Color Lab