Skip to content

#2f02ce

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

RGB
47, 2, 206
HSL
253°, 98%, 41%
CMYK
77, 99, 0, 19
Luminance
0.0510

Every format

HEX#2f02ce
RGBrgb(47, 2, 206)
HSLhsl(253, 98%, 41%)
CMYKcmyk(77%, 99%, 0%, 19%)
LABlab(27.0 67.7 -88.6)
LCHlch(27.0 111.5 307.4)
OKLCHoklch(0.403 0.256 272.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f02ce on white: 10.39:1
AA ✓ pass · AA-large · AAA
Aa
#2f02ce on black: 2.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green0.8%
Blue80.8%

CMYK percentages

Cyan77.2%
Magenta99.0%
Yellow0.0%
Key (black)19.2%

Color previews

#2f02ce text on a black background

contrast 2.02:1

Card sample

#2f02ce text on a white background

contrast 10.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f02ce

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f02ce in the Color Lab