Skip to content

#2f0ccf

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

RGB
47, 12, 207
HSL
251°, 89%, 43%
CMYK
77, 94, 0, 19
Luminance
0.0537

Every format

HEX#2f0ccf
RGBrgb(47, 12, 207)
HSLhsl(251, 89%, 43%)
CMYKcmyk(77%, 94%, 0%, 19%)
LABlab(27.8 66.0 -88.0)
LCHlch(27.8 110.0 306.9)
OKLCHoklch(0.408 0.254 272.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f0ccf on white: 10.12:1
AA ✓ pass · AA-large · AAA
Aa
#2f0ccf on black: 2.07:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green4.7%
Blue81.2%

CMYK percentages

Cyan77.3%
Magenta94.2%
Yellow0.0%
Key (black)18.8%

Color previews

#2f0ccf text on a black background

contrast 2.07:1

Card sample

#2f0ccf text on a white background

contrast 10.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f0ccf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f0ccf in the Color Lab