Skip to content

#2f0026

a deep, electric magenta / pink · warm · closest name: black

RGB
47, 0, 38
HSL
312°, 100%, 9%
CMYK
0, 100, 19, 82
Luminance
0.0074

Every format

HEX#2f0026
RGBrgb(47, 0, 38)
HSLhsl(312, 100%, 9%)
CMYKcmyk(0%, 100%, 19%, 82%)
LABlab(6.7 28.1 -12.7)
LCHlch(6.7 30.8 335.7)
OKLCHoklch(0.207 0.091 337.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f0026 on white: 18.28:1
AA ✓ pass · AA-large · AAA
Aa
#2f0026 on black: 1.15:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green0.0%
Blue14.9%

CMYK percentages

Cyan0.0%
Magenta100.0%
Yellow19.1%
Key (black)81.6%

Color previews

#2f0026 text on a black background

contrast 1.15:1

Card sample

#2f0026 text on a white background

contrast 18.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f0026

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f0026 in the Color Lab