Skip to content

#508af2

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

RGB
80, 138, 242
HSL
219°, 86%, 63%
CMYK
67, 43, 0, 5
Luminance
0.2629

Every format

HEX#508af2
RGBrgb(80, 138, 242)
HSLhsl(219, 86%, 63%)
CMYKcmyk(67%, 43%, 0%, 5%)
LABlab(58.3 14.0 -57.9)
LCHlch(58.3 59.5 283.6)
OKLCHoklch(0.645 0.167 261.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#508af2 on white: 3.36:1
AA ✗ fail · AA-large · AAA
Aa
#508af2 on black: 6.26:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.4%
Green54.1%
Blue94.9%

CMYK percentages

Cyan66.9%
Magenta43.0%
Yellow0.0%
Key (black)5.1%

Color previews

#508af2 text on a black background

contrast 6.26:1

Card sample

#508af2 text on a white background

contrast 3.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #508af2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #508af2 in the Color Lab