Skip to content

#4070ff

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

RGB
64, 112, 255
HSL
225°, 100%, 63%
CMYK
75, 56, 0, 0
Luminance
0.1990

Every format

HEX#4070ff
RGBrgb(64, 112, 255)
HSLhsl(225, 100%, 63%)
CMYKcmyk(75%, 56%, 0%, 0%)
LABlab(51.7 32.5 -75.7)
LCHlch(51.7 82.4 293.2)
OKLCHoklch(0.596 0.219 265.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4070ff on white: 4.22:1
AA ✗ fail · AA-large · AAA
Aa
#4070ff on black: 4.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green43.9%
Blue100.0%

CMYK percentages

Cyan74.9%
Magenta56.1%
Yellow0.0%
Key (black)0.0%

Color previews

#4070ff text on a black background

contrast 4.98:1

Card sample

#4070ff text on a white background

contrast 4.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4070ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4070ff in the Color Lab