Skip to content

#4f2cdf

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

RGB
79, 44, 223
HSL
252°, 74%, 52%
CMYK
65, 80, 0, 13
Luminance
0.0879

Every format

HEX#4f2cdf
RGBrgb(79, 44, 223)
HSLhsl(252, 74%, 52%)
CMYKcmyk(65%, 80%, 0%, 13%)
LABlab(35.6 61.8 -84.2)
LCHlch(35.6 104.4 306.3)
OKLCHoklch(0.472 0.247 280.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f2cdf on white: 7.61:1
AA ✓ pass · AA-large · AAA
Aa
#4f2cdf on black: 2.76:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green17.3%
Blue87.5%

CMYK percentages

Cyan64.6%
Magenta80.3%
Yellow0.0%
Key (black)12.5%

Color previews

#4f2cdf text on a black background

contrast 2.76:1

Card sample

#4f2cdf text on a white background

contrast 7.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f2cdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f2cdf in the Color Lab