Skip to content

#4f2df2

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

RGB
79, 45, 242
HSL
250°, 88%, 56%
CMYK
67, 81, 0, 5
Luminance
0.0995

Every format

HEX#4f2df2
RGBrgb(79, 45, 242)
HSLhsl(250, 88%, 56%)
CMYKcmyk(67%, 81%, 0%, 5%)
LABlab(37.8 66.6 -91.4)
LCHlch(37.8 113.1 306.1)
OKLCHoklch(0.493 0.267 278.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f2df2 on white: 7.02:1
AA ✓ pass · AA-large · AAA
Aa
#4f2df2 on black: 2.99:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green17.6%
Blue94.9%

CMYK percentages

Cyan67.4%
Magenta81.4%
Yellow0.0%
Key (black)5.1%

Color previews

#4f2df2 text on a black background

contrast 2.99:1

Card sample

#4f2df2 text on a white background

contrast 7.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f2df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f2df2 in the Color Lab