Skip to content

#337fac

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

RGB
51, 127, 172
HSL
202°, 54%, 44%
CMYK
70, 26, 0, 33
Luminance
0.1886

Every format

HEX#337fac
RGBrgb(51, 127, 172)
HSLhsl(202, 54%, 44%)
CMYKcmyk(70%, 26%, 0%, 33%)
LABlab(50.5 -8.4 -30.7)
LCHlch(50.5 31.8 254.7)
OKLCHoklch(0.570 0.102 238.3)

Copy-ready code

/* CSS */
color: #337fac;
background-color: #337fac;
/* Tailwind (arbitrary) */
class="text-[#337fac] bg-[#337fac]"
/* SCSS */
$brand: #337fac;
/* SwiftUI */
Color(red: 0.200, green: 0.498, blue: 0.675)
/* Android */
Color.parseColor("#337fac")

Accessibility — WCAG contrast

Aa
#337fac on white: 4.40:1
AA ✗ fail · AA-large · AAA
Aa
#337fac on black: 4.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red20.0%
Green49.8%
Blue67.5%

CMYK percentages

Cyan70.3%
Magenta26.2%
Yellow0.0%
Key (black)32.5%

Color previews

#337fac text on a black background

contrast 4.77:1

Card sample

#337fac text on a white background

contrast 4.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #337fac;
Background color
Panel with #337fac background
background-color: #337fac;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #337fac;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(51, 127, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 127, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #337fac;
background: linear-gradient(135deg, #337fac, #3833AC);

Monochromatic scale

Palettes built from #337fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #337fac in the Color Lab