Skip to content

#2f2fdc

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

RGB
47, 47, 220
HSL
240°, 71%, 52%
CMYK
79, 79, 0, 14
Luminance
0.0780

Every format

HEX#2f2fdc
RGBrgb(47, 47, 220)
HSLhsl(240, 71%, 52%)
CMYKcmyk(79%, 79%, 0%, 14%)
LABlab(33.6 57.2 -85.8)
LCHlch(33.6 103.1 303.7)
OKLCHoklch(0.452 0.248 270.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2fdc on white: 8.20:1
AA ✓ pass · AA-large · AAA
Aa
#2f2fdc on black: 2.56:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green18.4%
Blue86.3%

CMYK percentages

Cyan78.6%
Magenta78.6%
Yellow0.0%
Key (black)13.7%

Color previews

#2f2fdc text on a black background

contrast 2.56:1

Card sample

#2f2fdc text on a white background

contrast 8.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f2fdc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f2fdc in the Color Lab