Skip to content

#3e105d

a deep, vivid violet · warm · closest name: midnightblue

RGB
62, 16, 93
HSL
276°, 71%, 21%
CMYK
33, 83, 0, 64
Luminance
0.0219

Every format

HEX#3e105d
RGBrgb(62, 16, 93)
HSLhsl(276, 71%, 21%)
CMYKcmyk(33%, 83%, 0%, 64%)
LABlab(16.4 36.2 -36.0)
LCHlch(16.4 51.1 315.2)
OKLCHoklch(0.296 0.128 307.2)

Copy-ready code

/* CSS */
color: #3e105d;
background-color: #3e105d;
/* Tailwind (arbitrary) */
class="text-[#3e105d] bg-[#3e105d]"
/* SCSS */
$brand: #3e105d;
/* SwiftUI */
Color(red: 0.243, green: 0.063, blue: 0.365)
/* Android */
Color.parseColor("#3e105d")

Accessibility — WCAG contrast

Aa
#3e105d on white: 14.61:1
AA ✓ pass · AA-large · AAA
Aa
#3e105d on black: 1.44:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red24.3%
Green6.3%
Blue36.5%

CMYK percentages

Cyan33.3%
Magenta82.8%
Yellow0.0%
Key (black)63.5%

Color previews

#3e105d text on a black background

contrast 1.44:1

Card sample

#3e105d text on a white background

contrast 14.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #3e105d;
Background color
Panel with #3e105d background
background-color: #3e105d;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(62, 16, 93, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(62, 16, 93, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3e105d;
background: linear-gradient(135deg, #3e105d, #5D1049);

Monochromatic scale

Palettes built from #3e105d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #3e105d in the Color Lab