Skip to content

#2f0cfc

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

RGB
47, 12, 252
HSL
249°, 98%, 52%
CMYK
81, 95, 0, 1
Luminance
0.0790

Every format

HEX#2f0cfc
RGBrgb(47, 12, 252)
HSLhsl(249, 98%, 52%)
CMYKcmyk(81%, 95%, 0%, 1%)
LABlab(33.8 77.2 -103.7)
LCHlch(33.8 129.3 306.7)
OKLCHoklch(0.464 0.299 269.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f0cfc on white: 8.14:1
AA ✓ pass · AA-large · AAA
Aa
#2f0cfc on black: 2.58:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green4.7%
Blue98.8%

CMYK percentages

Cyan81.3%
Magenta95.2%
Yellow0.0%
Key (black)1.2%

Color previews

#2f0cfc text on a black background

contrast 2.58:1

Card sample

#2f0cfc text on a white background

contrast 8.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f0cfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f0cfc in the Color Lab