Skip to content

#508af5

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

RGB
80, 138, 245
HSL
219°, 89%, 64%
CMYK
67, 44, 0, 4
Luminance
0.2648

Every format

HEX#508af5
RGBrgb(80, 138, 245)
HSLhsl(219, 89%, 64%)
CMYKcmyk(67%, 44%, 0%, 4%)
LABlab(58.5 15.1 -59.3)
LCHlch(58.5 61.1 284.3)
OKLCHoklch(0.647 0.171 261.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#508af5 on white: 3.34:1
AA ✗ fail · AA-large · AAA
Aa
#508af5 on black: 6.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.4%
Green54.1%
Blue96.1%

CMYK percentages

Cyan67.3%
Magenta43.7%
Yellow0.0%
Key (black)3.9%

Color previews

#508af5 text on a black background

contrast 6.30:1

Card sample

#508af5 text on a white background

contrast 3.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #508af5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #508af5 in the Color Lab