Skip to content

#4170df

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

RGB
65, 112, 223
HSL
222°, 71%, 57%
CMYK
71, 50, 0, 13
Luminance
0.1804

Every format

HEX#4170df
RGBrgb(65, 112, 223)
HSLhsl(222, 71%, 57%)
CMYKcmyk(71%, 50%, 0%, 13%)
LABlab(49.5 21.1 -61.4)
LCHlch(49.5 64.9 289.0)
OKLCHoklch(0.572 0.177 264.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

Cyan70.9%
Magenta49.8%
Yellow0.0%
Key (black)12.5%

Color previews

#4170df text on a black background

contrast 4.61:1

Card sample

#4170df text on a white background

contrast 4.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4170df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4170df in the Color Lab