Skip to content

#2f77cc

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

RGB
47, 119, 204
HSL
213°, 63%, 49%
CMYK
77, 42, 0, 20
Luminance
0.1816

Every format

HEX#2f77cc
RGBrgb(47, 119, 204)
HSLhsl(213, 63%, 49%)
CMYKcmyk(77%, 42%, 0%, 20%)
LABlab(49.7 7.5 -50.4)
LCHlch(49.7 51.0 278.5)
OKLCHoklch(0.568 0.149 254.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f77cc on white: 4.53:1
AA ✓ pass · AA-large · AAA
Aa
#2f77cc on black: 4.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green46.7%
Blue80.0%

CMYK percentages

Cyan77.0%
Magenta41.7%
Yellow0.0%
Key (black)20.0%

Color previews

#2f77cc text on a black background

contrast 4.63:1

Card sample

#2f77cc text on a white background

contrast 4.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 119, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 119, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f77cc;
background: linear-gradient(135deg, #2f77cc, #502FCC);

Monochromatic scale

Palettes built from #2f77cc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f77cc in the Color Lab