Skip to content

#4f2dff

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

RGB
79, 45, 255
HSL
250°, 100%, 59%
CMYK
69, 82, 0, 0
Luminance
0.1076

Every format

HEX#4f2dff
RGBrgb(79, 45, 255)
HSLhsl(250, 100%, 59%)
CMYKcmyk(69%, 82%, 0%, 0%)
LABlab(39.2 70.2 -96.3)
LCHlch(39.2 119.2 306.1)
OKLCHoklch(0.507 0.280 276.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f2dff on white: 6.66:1
AA ✓ pass · AA-large · AAA
Aa
#4f2dff on black: 3.15:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green17.6%
Blue100.0%

CMYK percentages

Cyan69.0%
Magenta82.4%
Yellow0.0%
Key (black)0.0%

Color previews

#4f2dff text on a black background

contrast 3.15:1

Card sample

#4f2dff text on a white background

contrast 6.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f2dff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f2dff in the Color Lab