Skip to content

#2f7dad

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

RGB
47, 125, 173
HSL
203°, 57%, 43%
CMYK
73, 28, 0, 32
Luminance
0.1829

Every format

HEX#2f7dad
RGBrgb(47, 125, 173)
HSLhsl(203, 57%, 43%)
CMYKcmyk(73%, 28%, 0%, 32%)
LABlab(49.8 -7.5 -32.3)
LCHlch(49.8 33.2 257.0)
OKLCHoklch(0.564 0.106 239.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f7dad on white: 4.51:1
AA ✓ pass · AA-large · AAA
Aa
#2f7dad on black: 4.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green49.0%
Blue67.8%

CMYK percentages

Cyan72.8%
Magenta27.7%
Yellow0.0%
Key (black)32.2%

Color previews

#2f7dad text on a black background

contrast 4.66:1

Card sample

#2f7dad text on a white background

contrast 4.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 125, 173, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 125, 173, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f7dad;
background: linear-gradient(135deg, #2f7dad, #352FAD);

Monochromatic scale

Palettes built from #2f7dad

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f7dad in the Color Lab