Skip to content

#2f28cf

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

RGB
47, 40, 207
HSL
243°, 68%, 48%
CMYK
77, 81, 0, 19
Luminance
0.0663

Every format

HEX#2f28cf
RGBrgb(47, 40, 207)
HSLhsl(243, 68%, 48%)
CMYKcmyk(77%, 81%, 0%, 19%)
LABlab(30.9 56.5 -82.7)
LCHlch(30.9 100.2 304.4)
OKLCHoklch(0.429 0.239 271.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f28cf on white: 9.03:1
AA ✓ pass · AA-large · AAA
Aa
#2f28cf on black: 2.33:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green15.7%
Blue81.2%

CMYK percentages

Cyan77.3%
Magenta80.7%
Yellow0.0%
Key (black)18.8%

Color previews

#2f28cf text on a black background

contrast 2.33:1

Card sample

#2f28cf text on a white background

contrast 9.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f28cf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f28cf in the Color Lab