Skip to content

#2c5dad

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

RGB
44, 93, 173
HSL
217°, 59%, 43%
CMYK
75, 46, 0, 32
Luminance
0.1138

Every format

HEX#2c5dad
RGBrgb(44, 93, 173)
HSLhsl(217, 59%, 43%)
CMYKcmyk(75%, 46%, 0%, 32%)
LABlab(40.2 11.9 -47.6)
LCHlch(40.2 49.0 284.1)
OKLCHoklch(0.488 0.139 259.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c5dad on white: 6.41:1
AA ✓ pass · AA-large · AAA
Aa
#2c5dad on black: 3.28:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.3%
Green36.5%
Blue67.8%

CMYK percentages

Cyan74.6%
Magenta46.2%
Yellow0.0%
Key (black)32.2%

Color previews

#2c5dad text on a black background

contrast 3.28:1

Card sample

#2c5dad text on a white background

contrast 6.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c5dad

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c5dad in the Color Lab