Skip to content

#408bdf

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

RGB
64, 139, 223
HSL
212°, 71%, 56%
CMYK
71, 38, 0, 13
Luminance
0.2488

Every format

HEX#408bdf
RGBrgb(64, 139, 223)
HSLhsl(212, 71%, 56%)
CMYKcmyk(71%, 38%, 0%, 13%)
LABlab(57.0 4.4 -49.5)
LCHlch(57.0 49.7 275.1)
OKLCHoklch(0.630 0.147 253.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#408bdf on white: 3.51:1
AA ✗ fail · AA-large · AAA
Aa
#408bdf on black: 5.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green54.5%
Blue87.5%

CMYK percentages

Cyan71.3%
Magenta37.7%
Yellow0.0%
Key (black)12.5%

Color previews

#408bdf text on a black background

contrast 5.98:1

Card sample

#408bdf text on a white background

contrast 3.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #408bdf;
Background color
Panel with #408bdf background
background-color: #408bdf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #408bdf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(64, 139, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 139, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #408bdf;
background: linear-gradient(135deg, #408bdf, #5F40DF);

Monochromatic scale

Palettes built from #408bdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #408bdf in the Color Lab