Skip to content

#4f2fce

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

RGB
79, 47, 206
HSL
252°, 63%, 50%
CMYK
62, 77, 0, 19
Luminance
0.0815

Every format

HEX#4f2fce
RGBrgb(79, 47, 206)
HSLhsl(252, 63%, 50%)
CMYKcmyk(62%, 77%, 0%, 19%)
LABlab(34.3 55.7 -76.5)
LCHlch(34.3 94.6 306.1)
OKLCHoklch(0.458 0.226 282.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f2fce on white: 7.98:1
AA ✓ pass · AA-large · AAA
Aa
#4f2fce on black: 2.63:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green18.4%
Blue80.8%

CMYK percentages

Cyan61.7%
Magenta77.2%
Yellow0.0%
Key (black)19.2%

Color previews

#4f2fce text on a black background

contrast 2.63:1

Card sample

#4f2fce text on a white background

contrast 7.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f2fce

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f2fce in the Color Lab