Skip to content

#2f5e9c

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

RGB
47, 94, 156
HSL
214°, 54%, 40%
CMYK
70, 40, 0, 39
Luminance
0.1101

Every format

HEX#2f5e9c
RGBrgb(47, 94, 156)
HSLhsl(214, 54%, 40%)
CMYKcmyk(70%, 40%, 0%, 39%)
LABlab(39.6 5.3 -38.5)
LCHlch(39.6 38.8 277.8)
OKLCHoklch(0.480 0.113 256.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f5e9c on white: 6.56:1
AA ✓ pass · AA-large · AAA
Aa
#2f5e9c on black: 3.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green36.9%
Blue61.2%

CMYK percentages

Cyan69.9%
Magenta39.7%
Yellow0.0%
Key (black)38.8%

Color previews

#2f5e9c text on a black background

contrast 3.20:1

Card sample

#2f5e9c text on a white background

contrast 6.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 94, 156, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 94, 156, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f5e9c;
background: linear-gradient(135deg, #2f5e9c, #492F9C);

Monochromatic scale

Palettes built from #2f5e9c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f5e9c in the Color Lab