Skip to content

#4070df

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

RGB
64, 112, 223
HSL
222°, 71%, 56%
CMYK
71, 50, 0, 13
Luminance
0.1801

Every format

HEX#4070df
RGBrgb(64, 112, 223)
HSLhsl(222, 71%, 56%)
CMYKcmyk(71%, 50%, 0%, 13%)
LABlab(49.5 21.0 -61.4)
LCHlch(49.5 64.9 288.9)
OKLCHoklch(0.572 0.177 264.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4070df on white: 4.56:1
AA ✓ pass · AA-large · AAA
Aa
#4070df on black: 4.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green43.9%
Blue87.5%

CMYK percentages

Cyan71.3%
Magenta49.8%
Yellow0.0%
Key (black)12.5%

Color previews

#4070df text on a black background

contrast 4.60:1

Card sample

#4070df text on a white background

contrast 4.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4070df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4070df in the Color Lab