Skip to content

#2c47cf

a balanced, vivid blue · warm · closest name: slateblue

RGB
44, 71, 207
HSL
230°, 65%, 49%
CMYK
79, 66, 0, 19
Luminance
0.0955

Every format

HEX#2c47cf
RGBrgb(44, 71, 207)
HSLhsl(230, 65%, 49%)
CMYKcmyk(79%, 66%, 0%, 19%)
LABlab(37.0 39.0 -72.7)
LCHlch(37.0 82.4 298.2)
OKLCHoklch(0.472 0.210 268.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c47cf on white: 7.22:1
AA ✓ pass · AA-large · AAA
Aa
#2c47cf on black: 2.91:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.3%
Green27.8%
Blue81.2%

CMYK percentages

Cyan78.7%
Magenta65.7%
Yellow0.0%
Key (black)18.8%

Color previews

#2c47cf text on a black background

contrast 2.91:1

Card sample

#2c47cf text on a white background

contrast 7.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(44, 71, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(44, 71, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2c47cf;
background: linear-gradient(135deg, #2c47cf, #7E2CCF);

Monochromatic scale

Palettes built from #2c47cf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c47cf in the Color Lab