Skip to content

#4f2ddc

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

RGB
79, 45, 220
HSL
252°, 71%, 52%
CMYK
64, 80, 0, 14
Luminance
0.0871

Every format

HEX#4f2ddc
RGBrgb(79, 45, 220)
HSLhsl(252, 71%, 52%)
CMYKcmyk(64%, 80%, 0%, 14%)
LABlab(35.4 60.5 -82.7)
LCHlch(35.4 102.5 306.2)
OKLCHoklch(0.470 0.243 280.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red31.0%
Green17.6%
Blue86.3%

CMYK percentages

Cyan64.1%
Magenta79.5%
Yellow0.0%
Key (black)13.7%

Color previews

#4f2ddc text on a black background

contrast 2.74:1

Card sample

#4f2ddc text on a white background

contrast 7.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f2ddc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f2ddc in the Color Lab