Skip to content

#4f20df

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

RGB
79, 32, 223
HSL
255°, 75%, 50%
CMYK
65, 86, 0, 13
Luminance
0.0802

Every format

HEX#4f20df
RGBrgb(79, 32, 223)
HSLhsl(255, 75%, 50%)
CMYKcmyk(65%, 86%, 0%, 13%)
LABlab(34.0 66.4 -86.7)
LCHlch(34.0 109.2 307.4)
OKLCHoklch(0.462 0.255 281.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f20df on white: 8.06:1
AA ✓ pass · AA-large · AAA
Aa
#4f20df on black: 2.60:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green12.5%
Blue87.5%

CMYK percentages

Cyan64.6%
Magenta85.7%
Yellow0.0%
Key (black)12.5%

Color previews

#4f20df text on a black background

contrast 2.60:1

Card sample

#4f20df text on a white background

contrast 8.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f20df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f20df in the Color Lab