Skip to content

#4f7afd

a light, electric blue · warm · closest name: royalblue

RGB
79, 122, 253
HSL
225°, 98%, 65%
CMYK
69, 52, 0, 1
Luminance
0.2267

Every format

HEX#4f7afd
RGBrgb(79, 122, 253)
HSLhsl(225, 98%, 65%)
CMYKcmyk(69%, 52%, 0%, 1%)
LABlab(54.7 27.4 -69.7)
LCHlch(54.7 74.9 291.5)
OKLCHoklch(0.620 0.201 266.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f7afd on white: 3.79:1
AA ✗ fail · AA-large · AAA
Aa
#4f7afd on black: 5.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green47.8%
Blue99.2%

CMYK percentages

Cyan68.8%
Magenta51.8%
Yellow0.0%
Key (black)0.8%

Color previews

#4f7afd text on a black background

contrast 5.53:1

Card sample

#4f7afd text on a white background

contrast 3.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f7afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f7afd in the Color Lab