Skip to content

#2f0fdc

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

RGB
47, 15, 220
HSL
249°, 87%, 46%
CMYK
79, 93, 0, 14
Luminance
0.0611

Every format

HEX#2f0fdc
RGBrgb(47, 15, 220)
HSLhsl(249, 87%, 46%)
CMYKcmyk(79%, 93%, 0%, 14%)
LABlab(29.7 68.7 -92.3)
LCHlch(29.7 115.0 306.7)
OKLCHoklch(0.425 0.267 271.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f0fdc on white: 9.45:1
AA ✓ pass · AA-large · AAA
Aa
#2f0fdc on black: 2.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green5.9%
Blue86.3%

CMYK percentages

Cyan78.6%
Magenta93.2%
Yellow0.0%
Key (black)13.7%

Color previews

#2f0fdc text on a black background

contrast 2.22:1

Card sample

#2f0fdc text on a white background

contrast 9.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f0fdc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f0fdc in the Color Lab