Skip to content

#2d0f2e

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

RGB
45, 15, 46
HSL
298°, 51%, 12%
CMYK
2, 67, 0, 82
Luminance
0.0110

Every format

HEX#2d0f2e
RGBrgb(45, 15, 46)
HSLhsl(298, 51%, 12%)
CMYKcmyk(2%, 67%, 0%, 82%)
LABlab(9.8 20.8 -13.9)
LCHlch(9.8 25.1 326.3)
OKLCHoklch(0.231 0.069 326.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d0f2e on white: 17.22:1
AA ✓ pass · AA-large · AAA
Aa
#2d0f2e on black: 1.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green5.9%
Blue18.0%

CMYK percentages

Cyan2.2%
Magenta67.4%
Yellow0.0%
Key (black)82.0%

Color previews

#2d0f2e text on a black background

contrast 1.22:1

Card sample

#2d0f2e text on a white background

contrast 17.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d0f2e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d0f2e in the Color Lab