Skip to content

#280c2f

a deep, vivid violet · warm · closest name: black

RGB
40, 12, 47
HSL
288°, 59%, 12%
CMYK
15, 75, 0, 82
Luminance
0.0092

Every format

HEX#280c2f
RGBrgb(40, 12, 47)
HSLhsl(288, 59%, 12%)
CMYKcmyk(15%, 75%, 0%, 82%)
LABlab(8.3 21.2 -17.0)
LCHlch(8.3 27.2 321.2)
OKLCHoklch(0.219 0.073 319.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#280c2f on white: 17.74:1
AA ✓ pass · AA-large · AAA
Aa
#280c2f on black: 1.18:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red15.7%
Green4.7%
Blue18.4%

CMYK percentages

Cyan14.9%
Magenta74.5%
Yellow0.0%
Key (black)81.6%

Color previews

#280c2f text on a black background

contrast 1.18:1

Card sample

#280c2f text on a white background

contrast 17.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #280c2f;
Background color
Panel with #280c2f background
background-color: #280c2f;
Text shadow — hex

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #280c2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #280c2f in the Color Lab