Skip to content

#2f0ffb

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

RGB
47, 15, 251
HSL
248°, 97%, 52%
CMYK
81, 94, 0, 2
Luminance
0.0791

Every format

HEX#2f0ffb
RGBrgb(47, 15, 251)
HSLhsl(248, 97%, 52%)
CMYKcmyk(81%, 94%, 0%, 2%)
LABlab(33.8 76.4 -103.1)
LCHlch(33.8 128.3 306.6)
OKLCHoklch(0.464 0.298 269.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red18.4%
Green5.9%
Blue98.4%

CMYK percentages

Cyan81.3%
Magenta94.0%
Yellow0.0%
Key (black)1.6%

Color previews

#2f0ffb text on a black background

contrast 2.58:1

Card sample

#2f0ffb text on a white background

contrast 8.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f0ffb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f0ffb in the Color Lab