Skip to content

#508cd4

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

RGB
80, 140, 212
HSL
213°, 61%, 57%
CMYK
62, 34, 0, 17
Luminance
0.2522

Every format

HEX#508cd4
RGBrgb(80, 140, 212)
HSLhsl(213, 61%, 57%)
CMYKcmyk(62%, 34%, 0%, 17%)
LABlab(57.3 2.6 -42.8)
LCHlch(57.3 42.9 273.5)
OKLCHoklch(0.632 0.126 254.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#508cd4 on white: 3.48:1
AA ✗ fail · AA-large · AAA
Aa
#508cd4 on black: 6.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.4%
Green54.9%
Blue83.1%

CMYK percentages

Cyan62.3%
Magenta34.0%
Yellow0.0%
Key (black)16.9%

Color previews

#508cd4 text on a black background

contrast 6.04:1

Card sample

#508cd4 text on a white background

contrast 3.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(80, 140, 212, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 140, 212, 0.45);
Border & gradient
Gradient panel
border: 3px solid #508cd4;
background: linear-gradient(135deg, #508cd4, #6C50D4);

Monochromatic scale

Palettes built from #508cd4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #508cd4 in the Color Lab