Skip to content

#404afd

a balanced, electric blue · warm · closest name: blue

RGB
64, 74, 253
HSL
237°, 98%, 62%
CMYK
75, 71, 0, 1
Luminance
0.1308

Every format

HEX#404afd
RGBrgb(64, 74, 253)
HSLhsl(237, 98%, 62%)
CMYKcmyk(75%, 71%, 0%, 1%)
LABlab(42.9 54.5 -89.1)
LCHlch(42.9 104.5 301.5)
OKLCHoklch(0.530 0.258 271.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#404afd on white: 5.81:1
AA ✓ pass · AA-large · AAA
Aa
#404afd on black: 3.62:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green29.0%
Blue99.2%

CMYK percentages

Cyan74.7%
Magenta70.8%
Yellow0.0%
Key (black)0.8%

Color previews

#404afd text on a black background

contrast 3.62:1

Card sample

#404afd text on a white background

contrast 5.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #404afd;
Background color
Panel with #404afd background
background-color: #404afd;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #404afd;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(64, 74, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 74, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #404afd;
background: linear-gradient(135deg, #404afd, #B440FD);

Monochromatic scale

Palettes built from #404afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #404afd in the Color Lab