Skip to content

#4d2cdf

a balanced, vivid blue · warm · closest name: blue

RGB
77, 44, 223
HSL
251°, 74%, 52%
CMYK
66, 80, 0, 13
Luminance
0.0871

Every format

HEX#4d2cdf
RGBrgb(77, 44, 223)
HSLhsl(251, 74%, 52%)
CMYKcmyk(66%, 80%, 0%, 13%)
LABlab(35.4 61.6 -84.4)
LCHlch(35.4 104.5 306.1)
OKLCHoklch(0.471 0.247 279.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4d2cdf on white: 7.66:1
AA ✓ pass · AA-large · AAA
Aa
#4d2cdf on black: 2.74:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red30.2%
Green17.3%
Blue87.5%

CMYK percentages

Cyan65.5%
Magenta80.3%
Yellow0.0%
Key (black)12.5%

Color previews

#4d2cdf text on a black background

contrast 2.74:1

Card sample

#4d2cdf text on a white background

contrast 7.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4d2cdf;
Background color
Panel with #4d2cdf background
background-color: #4d2cdf;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(77, 44, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(77, 44, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4d2cdf;
background: linear-gradient(135deg, #4d2cdf, #C52CDF);

Monochromatic scale

Palettes built from #4d2cdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4d2cdf in the Color Lab