Skip to content

#508af6

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

RGB
80, 138, 246
HSL
219°, 90%, 64%
CMYK
68, 44, 0, 4
Luminance
0.2654

Every format

HEX#508af6
RGBrgb(80, 138, 246)
HSLhsl(219, 90%, 64%)
CMYKcmyk(68%, 44%, 0%, 4%)
LABlab(58.5 15.4 -59.7)
LCHlch(58.5 61.7 284.5)
OKLCHoklch(0.648 0.173 261.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#508af6 on white: 3.33:1
AA ✗ fail · AA-large · AAA
Aa
#508af6 on black: 6.31:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan67.5%
Magenta43.9%
Yellow0.0%
Key (black)3.5%

Color previews

#508af6 text on a black background

contrast 6.31:1

Card sample

#508af6 text on a white background

contrast 3.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #508af6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #508af6 in the Color Lab