Skip to content

#2f5f8f

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

RGB
47, 95, 143
HSL
210°, 51%, 37%
CMYK
67, 34, 0, 44
Luminance
0.1077

Every format

HEX#2f5f8f
RGBrgb(47, 95, 143)
HSLhsl(210, 51%, 37%)
CMYKcmyk(67%, 34%, 0%, 44%)
LABlab(39.2 -0.1 -31.3)
LCHlch(39.2 31.3 269.8)
OKLCHoklch(0.475 0.094 250.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f5f8f on white: 6.66:1
AA ✓ pass · AA-large · AAA
Aa
#2f5f8f on black: 3.15:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green37.3%
Blue56.1%

CMYK percentages

Cyan67.1%
Magenta33.6%
Yellow0.0%
Key (black)43.9%

Color previews

#2f5f8f text on a black background

contrast 3.15:1

Card sample

#2f5f8f text on a white background

contrast 6.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f5f8f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f5f8f in the Color Lab