Skip to content

#404f21

a deep, soft green · cool · closest name: darkslategray

RGB
64, 79, 33
HSL
80°, 41%, 22%
CMYK
19, 0, 58, 69
Luminance
0.0679

Every format

HEX#404f21
RGBrgb(64, 79, 33)
HSLhsl(80, 41%, 22%)
CMYKcmyk(19%, 0%, 58%, 69%)
LABlab(31.3 -14.4 24.9)
LCHlch(31.3 28.8 119.9)
OKLCHoklch(0.403 0.071 124.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#404f21 on white: 8.90:1
AA ✓ pass · AA-large · AAA
Aa
#404f21 on black: 2.36:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green31.0%
Blue12.9%

CMYK percentages

Cyan19.0%
Magenta0.0%
Yellow58.2%
Key (black)69.0%

Color previews

#404f21 text on a black background

contrast 2.36:1

Card sample

#404f21 text on a white background

contrast 8.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 79, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 79, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #404f21;
background: linear-gradient(135deg, #404f21, #214F21);

Monochromatic scale

Palettes built from #404f21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #404f21 in the Color Lab