Skip to content

#4075df

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

RGB
64, 117, 223
HSL
220°, 71%, 56%
CMYK
71, 48, 0, 13
Luminance
0.1914

Every format

HEX#4075df
RGBrgb(64, 117, 223)
HSLhsl(220, 71%, 56%)
CMYKcmyk(71%, 48%, 0%, 13%)
LABlab(50.9 17.9 -59.3)
LCHlch(50.9 61.9 286.8)
OKLCHoklch(0.582 0.172 262.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4075df on white: 4.35:1
AA ✗ fail · AA-large · AAA
Aa
#4075df on black: 4.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green45.9%
Blue87.5%

CMYK percentages

Cyan71.3%
Magenta47.5%
Yellow0.0%
Key (black)12.5%

Color previews

#4075df text on a black background

contrast 4.83:1

Card sample

#4075df text on a white background

contrast 4.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4075df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4075df in the Color Lab