Skip to content

#2f032e

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

RGB
47, 3, 46
HSL
301°, 88%, 10%
CMYK
0, 94, 2, 82
Luminance
0.0087

Every format

HEX#2f032e
RGBrgb(47, 3, 46)
HSLhsl(301, 88%, 10%)
CMYKcmyk(0%, 94%, 2%, 82%)
LABlab(7.8 28.0 -17.0)
LCHlch(7.8 32.7 328.8)
OKLCHoklch(0.218 0.092 329.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f032e on white: 17.90:1
AA ✓ pass · AA-large · AAA
Aa
#2f032e on black: 1.17:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green1.2%
Blue18.0%

CMYK percentages

Cyan0.0%
Magenta93.6%
Yellow2.1%
Key (black)81.6%

Color previews

#2f032e text on a black background

contrast 1.17:1

Card sample

#2f032e text on a white background

contrast 17.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f032e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f032e in the Color Lab