Skip to content

#2f2fe1

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

RGB
47, 47, 225
HSL
240°, 75%, 53%
CMYK
79, 79, 0, 12
Luminance
0.0807

Every format

HEX#2f2fe1
RGBrgb(47, 47, 225)
HSLhsl(240, 75%, 53%)
CMYKcmyk(79%, 79%, 0%, 12%)
LABlab(34.1 58.7 -87.8)
LCHlch(34.1 105.6 303.8)
OKLCHoklch(0.458 0.254 270.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2fe1 on white: 8.03:1
AA ✓ pass · AA-large · AAA
Aa
#2f2fe1 on black: 2.61:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green18.4%
Blue88.2%

CMYK percentages

Cyan79.1%
Magenta79.1%
Yellow0.0%
Key (black)11.8%

Color previews

#2f2fe1 text on a black background

contrast 2.61:1

Card sample

#2f2fe1 text on a white background

contrast 8.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f2fe1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f2fe1 in the Color Lab