Skip to content

#508afb

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

RGB
80, 138, 251
HSL
220°, 96%, 65%
CMYK
68, 45, 0, 2
Luminance
0.2685

Every format

HEX#508afb
RGBrgb(80, 138, 251)
HSLhsl(220, 96%, 65%)
CMYKcmyk(68%, 45%, 0%, 2%)
LABlab(58.8 17.1 -62.0)
LCHlch(58.8 64.3 285.5)
OKLCHoklch(0.651 0.179 262.2)

Copy-ready code

/* CSS */
color: #508afb;
background-color: #508afb;
/* Tailwind (arbitrary) */
class="text-[#508afb] bg-[#508afb]"
/* SCSS */
$brand: #508afb;
/* SwiftUI */
Color(red: 0.314, green: 0.541, blue: 0.984)
/* Android */
Color.parseColor("#508afb")

Accessibility — WCAG contrast

Aa
#508afb on white: 3.30:1
AA ✗ fail · AA-large · AAA
Aa
#508afb on black: 6.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.4%
Green54.1%
Blue98.4%

CMYK percentages

Cyan68.1%
Magenta45.0%
Yellow0.0%
Key (black)1.6%

Color previews

#508afb text on a black background

contrast 6.37:1

Card sample

#508afb text on a white background

contrast 3.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #508afb;
Background color
Panel with #508afb background
background-color: #508afb;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #508afb;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(80, 138, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 138, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #508afb;
background: linear-gradient(135deg, #508afb, #8850FB);

Monochromatic scale

Palettes built from #508afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #508afb in the Color Lab