Skip to content

#2f2dcb

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

RGB
47, 45, 203
HSL
241°, 64%, 49%
CMYK
77, 78, 0, 20
Luminance
0.0679

Every format

HEX#2f2dcb
RGBrgb(47, 45, 203)
HSLhsl(241, 64%, 49%)
CMYKcmyk(77%, 78%, 0%, 20%)
LABlab(31.3 52.9 -79.7)
LCHlch(31.3 95.6 303.6)
OKLCHoklch(0.431 0.231 271.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2dcb on white: 8.90:1
AA ✓ pass · AA-large · AAA
Aa
#2f2dcb on black: 2.36:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green17.6%
Blue79.6%

CMYK percentages

Cyan76.8%
Magenta77.8%
Yellow0.0%
Key (black)20.4%

Color previews

#2f2dcb text on a black background

contrast 2.36:1

Card sample

#2f2dcb text on a white background

contrast 8.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 45, 203, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 45, 203, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f2dcb;
background: linear-gradient(135deg, #2f2dcb, #982DCB);

Monochromatic scale

Palettes built from #2f2dcb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f2dcb in the Color Lab