Skip to content

#210c49

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

RGB
33, 12, 73
HSL
261°, 72%, 17%
CMYK
55, 84, 0, 71
Luminance
0.0107

Every format

HEX#210c49
RGBrgb(33, 12, 73)
HSLhsl(261, 72%, 17%)
CMYKcmyk(55%, 84%, 0%, 71%)
LABlab(9.5 27.1 -33.8)
LCHlch(9.5 43.3 308.7)
OKLCHoklch(0.232 0.104 291.9)

Copy-ready code

/* CSS */
color: #210c49;
background-color: #210c49;
/* Tailwind (arbitrary) */
class="text-[#210c49] bg-[#210c49]"
/* SCSS */
$brand: #210c49;
/* SwiftUI */
Color(red: 0.129, green: 0.047, blue: 0.286)
/* Android */
Color.parseColor("#210c49")

Accessibility — WCAG contrast

Aa
#210c49 on white: 17.31:1
AA ✓ pass · AA-large · AAA
Aa
#210c49 on black: 1.21:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.9%
Green4.7%
Blue28.6%

CMYK percentages

Cyan54.8%
Magenta83.6%
Yellow0.0%
Key (black)71.4%

Color previews

#210c49 text on a black background

contrast 1.21:1

Card sample

#210c49 text on a white background

contrast 17.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #210c49;
Background color
Panel with #210c49 background
background-color: #210c49;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(33, 12, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(33, 12, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #210c49;
background: linear-gradient(135deg, #210c49, #490C48);

Monochromatic scale

Palettes built from #210c49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #210c49 in the Color Lab