Skip to content

#401c21

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

RGB
64, 28, 33
HSL
352°, 39%, 18%
CMYK
0, 56, 48, 75
Luminance
0.0203

Every format

HEX#401c21
RGBrgb(64, 28, 33)
HSLhsl(352, 39%, 18%)
CMYKcmyk(0%, 56%, 48%, 75%)
LABlab(15.7 18.1 4.8)
LCHlch(15.7 18.7 14.7)
OKLCHoklch(0.280 0.056 12.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#401c21 on white: 14.94:1
AA ✓ pass · AA-large · AAA
Aa
#401c21 on black: 1.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green11.0%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta56.2%
Yellow48.4%
Key (black)74.9%

Color previews

#401c21 text on a black background

contrast 1.41:1

Card sample

#401c21 text on a white background

contrast 14.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 28, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 28, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #401c21;
background: linear-gradient(135deg, #401c21, #402F1C);

Monochromatic scale

Palettes built from #401c21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #401c21 in the Color Lab