Skip to content

#284021

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

RGB
40, 64, 33
HSL
107°, 32%, 19%
CMYK
38, 0, 48, 75
Luminance
0.0423

Every format

HEX#284021
RGBrgb(40, 64, 33)
HSLhsl(107, 32%, 19%)
CMYKcmyk(38%, 0%, 48%, 75%)
LABlab(24.4 -16.5 16.1)
LCHlch(24.4 23.0 135.7)
OKLCHoklch(0.343 0.060 138.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#284021 on white: 11.38:1
AA ✓ pass · AA-large · AAA
Aa
#284021 on black: 1.85:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red15.7%
Green25.1%
Blue12.9%

CMYK percentages

Cyan37.5%
Magenta0.0%
Yellow48.4%
Key (black)74.9%

Color previews

#284021 text on a black background

contrast 1.85:1

Card sample

#284021 text on a white background

contrast 11.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #284021

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #284021 in the Color Lab