Skip to content

#280c31

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

RGB
40, 12, 49
HSL
285°, 61%, 12%
CMYK
18, 76, 0, 81
Luminance
0.0094

Every format

HEX#280c31
RGBrgb(40, 12, 49)
HSLhsl(285, 61%, 12%)
CMYKcmyk(18%, 76%, 0%, 81%)
LABlab(8.4 21.7 -18.3)
LCHlch(8.4 28.4 319.9)
OKLCHoklch(0.220 0.075 317.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#280c31 on white: 17.69:1
AA ✓ pass · AA-large · AAA
Aa
#280c31 on black: 1.19:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red15.7%
Green4.7%
Blue19.2%

CMYK percentages

Cyan18.4%
Magenta75.5%
Yellow0.0%
Key (black)80.8%

Color previews

#280c31 text on a black background

contrast 1.19:1

Card sample

#280c31 text on a white background

contrast 17.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #280c31

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #280c31 in the Color Lab