Skip to content

#2d3d21

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

RGB
45, 61, 33
HSL
94°, 30%, 18%
CMYK
26, 0, 46, 76
Luminance
0.0401

Every format

HEX#2d3d21
RGBrgb(45, 61, 33)
HSLhsl(94, 30%, 18%)
CMYKcmyk(26%, 0%, 46%, 76%)
LABlab(23.7 -12.6 15.2)
LCHlch(23.7 19.8 129.7)
OKLCHoklch(0.338 0.051 132.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d3d21 on white: 11.66:1
AA ✓ pass · AA-large · AAA
Aa
#2d3d21 on black: 1.80:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green23.9%
Blue12.9%

CMYK percentages

Cyan26.2%
Magenta0.0%
Yellow45.9%
Key (black)76.1%

Color previews

#2d3d21 text on a black background

contrast 1.80:1

Card sample

#2d3d21 text on a white background

contrast 11.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 61, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 61, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d3d21;
background: linear-gradient(135deg, #2d3d21, #213D28);

Monochromatic scale

Palettes built from #2d3d21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d3d21 in the Color Lab