Skip to content

#2d002f

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

RGB
45, 0, 47
HSL
297°, 100%, 9%
CMYK
4, 100, 0, 82
Luminance
0.0076

Every format

HEX#2d002f
RGBrgb(45, 0, 47)
HSLhsl(297, 100%, 9%)
CMYKcmyk(4%, 100%, 0%, 82%)
LABlab(6.9 29.3 -19.2)
LCHlch(6.9 35.1 326.8)
OKLCHoklch(0.210 0.098 326.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red17.6%
Green0.0%
Blue18.4%

CMYK percentages

Cyan4.3%
Magenta100.0%
Yellow0.0%
Key (black)81.6%

Color previews

#2d002f text on a black background

contrast 1.15:1

Card sample

#2d002f text on a white background

contrast 18.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d002f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d002f in the Color Lab