Skip to content

#2c5fad

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

RGB
44, 95, 173
HSL
216°, 59%, 43%
CMYK
75, 45, 0, 32
Luminance
0.1174

Every format

HEX#2c5fad
RGBrgb(44, 95, 173)
HSLhsl(216, 59%, 43%)
CMYKcmyk(75%, 45%, 0%, 32%)
LABlab(40.8 10.6 -46.6)
LCHlch(40.8 47.9 282.8)
OKLCHoklch(0.493 0.136 258.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c5fad on white: 6.27:1
AA ✓ pass · AA-large · AAA
Aa
#2c5fad on black: 3.35:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.3%
Green37.3%
Blue67.8%

CMYK percentages

Cyan74.6%
Magenta45.1%
Yellow0.0%
Key (black)32.2%

Color previews

#2c5fad text on a black background

contrast 3.35:1

Card sample

#2c5fad text on a white background

contrast 6.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(44, 95, 173, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(44, 95, 173, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2c5fad;
background: linear-gradient(135deg, #2c5fad, #4F2CAD);

Monochromatic scale

Palettes built from #2c5fad

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c5fad in the Color Lab