Skip to content

#282021

a deep, muted red · warm · closest name: black

RGB
40, 32, 33
HSL
353°, 11%, 14%
CMYK
0, 20, 18, 84
Luminance
0.0159

Every format

HEX#282021
RGBrgb(40, 32, 33)
HSLhsl(353, 11%, 14%)
CMYKcmyk(0%, 20%, 18%, 84%)
LABlab(13.2 4.0 0.8)
LCHlch(13.2 4.1 10.6)
OKLCHoklch(0.253 0.012 9.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#282021 on white: 15.92:1
AA ✓ pass · AA-large · AAA
Aa
#282021 on black: 1.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red15.7%
Green12.5%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta20.0%
Yellow17.5%
Key (black)84.3%

Color previews

#282021 text on a black background

contrast 1.32:1

Card sample

#282021 text on a white background

contrast 15.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #282021

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #282021 in the Color Lab