Skip to content

#2f6dac

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

RGB
47, 109, 172
HSL
210°, 57%, 43%
CMYK
73, 37, 0, 33
Luminance
0.1452

Every format

HEX#2f6dac
RGBrgb(47, 109, 172)
HSLhsl(210, 57%, 43%)
CMYKcmyk(73%, 37%, 0%, 33%)
LABlab(45.0 1.8 -39.4)
LCHlch(45.0 39.4 272.6)
OKLCHoklch(0.525 0.118 251.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f6dac on white: 5.38:1
AA ✓ pass · AA-large · AAA
Aa
#2f6dac on black: 3.90:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green42.7%
Blue67.5%

CMYK percentages

Cyan72.7%
Magenta36.6%
Yellow0.0%
Key (black)32.5%

Color previews

#2f6dac text on a black background

contrast 3.90:1

Card sample

#2f6dac text on a white background

contrast 5.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f6dac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f6dac in the Color Lab