Skip to content

#339ef1

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

RGB
51, 158, 241
HSL
206°, 87%, 57%
CMYK
79, 34, 0, 6
Luminance
0.3151

Every format

HEX#339ef1
RGBrgb(51, 158, 241)
HSLhsl(206, 87%, 57%)
CMYKcmyk(79%, 34%, 0%, 6%)
LABlab(62.9 -1.8 -50.0)
LCHlch(62.9 50.0 267.9)
OKLCHoklch(0.678 0.155 246.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#339ef1 on white: 2.88:1
AA ✗ fail · AA-large · AAA
Aa
#339ef1 on black: 7.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red20.0%
Green62.0%
Blue94.5%

CMYK percentages

Cyan78.8%
Magenta34.4%
Yellow0.0%
Key (black)5.5%

Color previews

#339ef1 text on a black background

contrast 7.30:1

Card sample

#339ef1 text on a white background

contrast 2.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #339ef1;
Background color
Panel with #339ef1 background
background-color: #339ef1;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #339ef1;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(51, 158, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 158, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #339ef1;
background: linear-gradient(135deg, #339ef1, #4733F1);

Monochromatic scale

Palettes built from #339ef1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #339ef1 in the Color Lab