Skip to content

#404df0

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

RGB
64, 77, 240
HSL
236°, 85%, 60%
CMYK
73, 68, 0, 6
Luminance
0.1269

Every format

HEX#404df0
RGBrgb(64, 77, 240)
HSLhsl(236, 85%, 60%)
CMYKcmyk(73%, 68%, 0%, 6%)
LABlab(42.3 48.6 -82.8)
LCHlch(42.3 96.0 300.4)
OKLCHoklch(0.522 0.240 271.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#404df0 on white: 5.94:1
AA ✓ pass · AA-large · AAA
Aa
#404df0 on black: 3.54:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green30.2%
Blue94.1%

CMYK percentages

Cyan73.3%
Magenta67.9%
Yellow0.0%
Key (black)5.9%

Color previews

#404df0 text on a black background

contrast 3.54:1

Card sample

#404df0 text on a white background

contrast 5.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #404df0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #404df0 in the Color Lab