Skip to content

#2f8ccc

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

RGB
47, 140, 204
HSL
205°, 63%, 49%
CMYK
77, 31, 0, 20
Luminance
0.2372

Every format

HEX#2f8ccc
RGBrgb(47, 140, 204)
HSLhsl(205, 63%, 49%)
CMYKcmyk(77%, 31%, 0%, 20%)
LABlab(55.8 -5.1 -40.7)
LCHlch(55.8 41.0 262.8)
OKLCHoklch(0.616 0.129 243.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f8ccc on white: 3.66:1
AA ✗ fail · AA-large · AAA
Aa
#2f8ccc on black: 5.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green54.9%
Blue80.0%

CMYK percentages

Cyan77.0%
Magenta31.4%
Yellow0.0%
Key (black)20.0%

Color previews

#2f8ccc text on a black background

contrast 5.74:1

Card sample

#2f8ccc text on a white background

contrast 3.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f8ccc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f8ccc in the Color Lab