Skip to content

#405fdf

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

RGB
64, 95, 223
HSL
228°, 71%, 56%
CMYK
71, 57, 0, 13
Luminance
0.1460

Every format

HEX#405fdf
RGBrgb(64, 95, 223)
HSLhsl(228, 71%, 56%)
CMYKcmyk(71%, 57%, 0%, 13%)
LABlab(45.1 31.7 -68.6)
LCHlch(45.1 75.6 294.8)
OKLCHoklch(0.539 0.198 268.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#405fdf on white: 5.36:1
AA ✓ pass · AA-large · AAA
Aa
#405fdf on black: 3.92:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green37.3%
Blue87.5%

CMYK percentages

Cyan71.3%
Magenta57.4%
Yellow0.0%
Key (black)12.5%

Color previews

#405fdf text on a black background

contrast 3.92:1

Card sample

#405fdf text on a white background

contrast 5.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #405fdf;
Background color
Panel with #405fdf background
background-color: #405fdf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #405fdf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(64, 95, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 95, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #405fdf;
background: linear-gradient(135deg, #405fdf, #8B40DF);

Monochromatic scale

Palettes built from #405fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #405fdf in the Color Lab