Skip to content

#4072df

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

RGB
64, 114, 223
HSL
221°, 71%, 56%
CMYK
71, 49, 0, 13
Luminance
0.1845

Every format

HEX#4072df
RGBrgb(64, 114, 223)
HSLhsl(221, 71%, 56%)
CMYKcmyk(71%, 49%, 0%, 13%)
LABlab(50.0 19.8 -60.6)
LCHlch(50.0 63.7 288.1)
OKLCHoklch(0.576 0.175 263.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4072df on white: 4.48:1
AA ✗ fail · AA-large · AAA
Aa
#4072df on black: 4.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green44.7%
Blue87.5%

CMYK percentages

Cyan71.3%
Magenta48.9%
Yellow0.0%
Key (black)12.5%

Color previews

#4072df text on a black background

contrast 4.69:1

Card sample

#4072df text on a white background

contrast 4.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4072df;
Background color
Panel with #4072df background
background-color: #4072df;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #4072df;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(64, 114, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 114, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4072df;
background: linear-gradient(135deg, #4072df, #7840DF);

Monochromatic scale

Palettes built from #4072df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4072df in the Color Lab