Skip to content

#4f2fcb

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

RGB
79, 47, 203
HSL
252°, 62%, 49%
CMYK
61, 77, 0, 20
Luminance
0.0801

Every format

HEX#4f2fcb
RGBrgb(79, 47, 203)
HSLhsl(252, 62%, 49%)
CMYKcmyk(61%, 77%, 0%, 20%)
LABlab(34.0 54.8 -75.2)
LCHlch(34.0 93.1 306.1)
OKLCHoklch(0.456 0.222 282.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red31.0%
Green18.4%
Blue79.6%

CMYK percentages

Cyan61.1%
Magenta76.8%
Yellow0.0%
Key (black)20.4%

Color previews

#4f2fcb text on a black background

contrast 2.60:1

Card sample

#4f2fcb text on a white background

contrast 8.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f2fcb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f2fcb in the Color Lab