Skip to content

#2f2dfc

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

RGB
47, 45, 252
HSL
241°, 97%, 58%
CMYK
81, 82, 0, 1
Luminance
0.0951

Every format

HEX#2f2dfc
RGBrgb(47, 45, 252)
HSLhsl(241, 97%, 58%)
CMYKcmyk(81%, 82%, 0%, 1%)
LABlab(36.9 67.6 -98.4)
LCHlch(36.9 119.4 304.5)
OKLCHoklch(0.486 0.285 269.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2dfc on white: 7.24:1
AA ✓ pass · AA-large · AAA
Aa
#2f2dfc on black: 2.90:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green17.6%
Blue98.8%

CMYK percentages

Cyan81.3%
Magenta82.1%
Yellow0.0%
Key (black)1.2%

Color previews

#2f2dfc text on a black background

contrast 2.90:1

Card sample

#2f2dfc text on a white background

contrast 7.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f2dfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f2dfc in the Color Lab