Skip to content

#4082df

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

RGB
64, 130, 223
HSL
215°, 71%, 56%
CMYK
71, 42, 0, 13
Luminance
0.2238

Every format

HEX#4082df
RGBrgb(64, 130, 223)
HSLhsl(215, 71%, 56%)
CMYKcmyk(71%, 42%, 0%, 13%)
LABlab(54.4 9.8 -53.5)
LCHlch(54.4 54.4 280.4)
OKLCHoklch(0.610 0.157 257.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4082df on white: 3.83:1
AA ✗ fail · AA-large · AAA
Aa
#4082df on black: 5.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green51.0%
Blue87.5%

CMYK percentages

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

Color previews

#4082df text on a black background

contrast 5.48:1

Card sample

#4082df text on a white background

contrast 3.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4082df;
Background color
Panel with #4082df background
background-color: #4082df;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #4082df;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(64, 130, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 130, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4082df;
background: linear-gradient(135deg, #4082df, #6840DF);

Monochromatic scale

Palettes built from #4082df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4082df in the Color Lab