Skip to content

#2f7fdc

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

RGB
47, 127, 220
HSL
212°, 71%, 52%
CMYK
79, 42, 0, 14
Luminance
0.2095

Every format

HEX#2f7fdc
RGBrgb(47, 127, 220)
HSLhsl(212, 71%, 52%)
CMYKcmyk(79%, 42%, 0%, 14%)
LABlab(52.9 8.5 -54.3)
LCHlch(52.9 55.0 278.9)
OKLCHoklch(0.596 0.161 254.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f7fdc on white: 4.05:1
AA ✗ fail · AA-large · AAA
Aa
#2f7fdc on black: 5.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green49.8%
Blue86.3%

CMYK percentages

Cyan78.6%
Magenta42.3%
Yellow0.0%
Key (black)13.7%

Color previews

#2f7fdc text on a black background

contrast 5.19:1

Card sample

#2f7fdc text on a white background

contrast 4.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2f7fdc;
Background color
Panel with #2f7fdc background
background-color: #2f7fdc;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 127, 220, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 127, 220, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f7fdc;
background: linear-gradient(135deg, #2f7fdc, #532FDC);

Monochromatic scale

Palettes built from #2f7fdc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f7fdc in the Color Lab