Skip to content

#3c2c64

a dark, soft violet · warm · closest name: midnightblue

RGB
60, 44, 100
HSL
257°, 39%, 28%
CMYK
40, 56, 0, 61
Luminance
0.0368

Every format

HEX#3c2c64
RGBrgb(60, 44, 100)
HSLhsl(257, 39%, 28%)
CMYKcmyk(40%, 56%, 0%, 61%)
LABlab(22.6 21.8 -30.7)
LCHlch(22.6 37.6 305.4)
OKLCHoklch(0.342 0.095 294.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#3c2c64 on white: 12.09:1
AA ✓ pass · AA-large · AAA
Aa
#3c2c64 on black: 1.74:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red23.5%
Green17.3%
Blue39.2%

CMYK percentages

Cyan40.0%
Magenta56.0%
Yellow0.0%
Key (black)60.8%

Color previews

#3c2c64 text on a black background

contrast 1.74:1

Card sample

#3c2c64 text on a white background

contrast 12.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(60, 44, 100, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(60, 44, 100, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3c2c64;
background: linear-gradient(135deg, #3c2c64, #612C64);

Monochromatic scale

Palettes built from #3c2c64

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #3c2c64 in the Color Lab