Skip to content

#4f2edc

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

RGB
79, 46, 220
HSL
251°, 71%, 52%
CMYK
64, 79, 0, 14
Luminance
0.0878

Every format

HEX#4f2edc
RGBrgb(79, 46, 220)
HSLhsl(251, 71%, 52%)
CMYKcmyk(64%, 79%, 0%, 14%)
LABlab(35.6 60.1 -82.5)
LCHlch(35.6 102.0 306.1)
OKLCHoklch(0.471 0.242 280.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f2edc on white: 7.62:1
AA ✓ pass · AA-large · AAA
Aa
#4f2edc on black: 2.76:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green18.0%
Blue86.3%

CMYK percentages

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

Color previews

#4f2edc text on a black background

contrast 2.76:1

Card sample

#4f2edc text on a white background

contrast 7.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f2edc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f2edc in the Color Lab