Skip to content

#2f6daf

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

RGB
47, 109, 175
HSL
211°, 58%, 44%
CMYK
73, 38, 0, 31
Luminance
0.1464

Every format

HEX#2f6daf
RGBrgb(47, 109, 175)
HSLhsl(211, 58%, 44%)
CMYKcmyk(73%, 38%, 0%, 31%)
LABlab(45.1 2.9 -40.9)
LCHlch(45.1 41.0 274.1)
OKLCHoklch(0.527 0.122 252.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f6daf on white: 5.35:1
AA ✓ pass · AA-large · AAA
Aa
#2f6daf on black: 3.93:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green42.7%
Blue68.6%

CMYK percentages

Cyan73.1%
Magenta37.7%
Yellow0.0%
Key (black)31.4%

Color previews

#2f6daf text on a black background

contrast 3.93:1

Card sample

#2f6daf text on a white background

contrast 5.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 109, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 109, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f6daf;
background: linear-gradient(135deg, #2f6daf, #462FAF);

Monochromatic scale

Palettes built from #2f6daf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f6daf in the Color Lab