Skip to content

#4f7ffc

a balanced, electric blue · cool · closest name: royalblue

RGB
79, 127, 252
HSL
223°, 97%, 65%
CMYK
69, 50, 0, 1
Luminance
0.2387

Every format

HEX#4f7ffc
RGBrgb(79, 127, 252)
HSLhsl(223, 97%, 65%)
CMYKcmyk(69%, 50%, 0%, 1%)
LABlab(56.0 24.0 -67.2)
LCHlch(56.0 71.3 289.7)
OKLCHoklch(0.629 0.194 265.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f7ffc on white: 3.64:1
AA ✗ fail · AA-large · AAA
Aa
#4f7ffc on black: 5.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green49.8%
Blue98.8%

CMYK percentages

Cyan68.7%
Magenta49.6%
Yellow0.0%
Key (black)1.2%

Color previews

#4f7ffc text on a black background

contrast 5.77:1

Card sample

#4f7ffc text on a white background

contrast 3.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f7ffc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f7ffc in the Color Lab