Skip to content

#2f48cf

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

RGB
47, 72, 207
HSL
231°, 63%, 50%
CMYK
77, 65, 0, 19
Luminance
0.0974

Every format

HEX#2f48cf
RGBrgb(47, 72, 207)
HSLhsl(231, 63%, 50%)
CMYKcmyk(77%, 65%, 0%, 19%)
LABlab(37.4 38.6 -72.0)
LCHlch(37.4 81.7 298.2)
OKLCHoklch(0.475 0.209 268.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f48cf on white: 7.12:1
AA ✓ pass · AA-large · AAA
Aa
#2f48cf on black: 2.95:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green28.2%
Blue81.2%

CMYK percentages

Cyan77.3%
Magenta65.2%
Yellow0.0%
Key (black)18.8%

Color previews

#2f48cf text on a black background

contrast 2.95:1

Card sample

#2f48cf text on a white background

contrast 7.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 72, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 72, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f48cf;
background: linear-gradient(135deg, #2f48cf, #812FCF);

Monochromatic scale

Palettes built from #2f48cf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f48cf in the Color Lab