Skip to content

#404eb4

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

RGB
64, 78, 180
HSL
233°, 48%, 48%
CMYK
64, 57, 0, 29
Luminance
0.0983

Every format

HEX#404eb4
RGBrgb(64, 78, 180)
HSLhsl(233, 48%, 48%)
CMYKcmyk(64%, 57%, 0%, 29%)
LABlab(37.5 27.3 -56.0)
LCHlch(37.5 62.3 296.0)
OKLCHoklch(0.472 0.161 272.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#404eb4 on white: 7.08:1
AA ✓ pass · AA-large · AAA
Aa
#404eb4 on black: 2.97:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green30.6%
Blue70.6%

CMYK percentages

Cyan64.4%
Magenta56.7%
Yellow0.0%
Key (black)29.4%

Color previews

#404eb4 text on a black background

contrast 2.97:1

Card sample

#404eb4 text on a white background

contrast 7.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 78, 180, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 78, 180, 0.45);
Border & gradient
Gradient panel
border: 3px solid #404eb4;
background: linear-gradient(135deg, #404eb4, #7F40B4);

Monochromatic scale

Palettes built from #404eb4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #404eb4 in the Color Lab