Skip to content

#2f28bf

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

RGB
47, 40, 191
HSL
243°, 65%, 45%
CMYK
75, 79, 0, 25
Luminance
0.0588

Every format

HEX#2f28bf
RGBrgb(47, 40, 191)
HSLhsl(243, 65%, 45%)
CMYKcmyk(75%, 79%, 0%, 25%)
LABlab(29.1 51.6 -76.3)
LCHlch(29.1 92.2 304.1)
OKLCHoklch(0.411 0.221 272.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f28bf on white: 9.65:1
AA ✓ pass · AA-large · AAA
Aa
#2f28bf on black: 2.18:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green15.7%
Blue74.9%

CMYK percentages

Cyan75.4%
Magenta79.1%
Yellow0.0%
Key (black)25.1%

Color previews

#2f28bf text on a black background

contrast 2.18:1

Card sample

#2f28bf text on a white background

contrast 9.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f28bf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f28bf in the Color Lab