Skip to content

#3a3f21

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

RGB
58, 63, 33
HSL
70°, 31%, 19%
CMYK
8, 0, 48, 75
Luminance
0.0456

Every format

HEX#3a3f21
RGBrgb(58, 63, 33)
HSLhsl(70, 31%, 19%)
CMYKcmyk(8%, 0%, 48%, 75%)
LABlab(25.5 -7.8 17.7)
LCHlch(25.5 19.3 113.7)
OKLCHoklch(0.355 0.048 116.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#3a3f21 on white: 10.98:1
AA ✓ pass · AA-large · AAA
Aa
#3a3f21 on black: 1.91:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red22.7%
Green24.7%
Blue12.9%

CMYK percentages

Cyan7.9%
Magenta0.0%
Yellow47.6%
Key (black)75.3%

Color previews

#3a3f21 text on a black background

contrast 1.91:1

Card sample

#3a3f21 text on a white background

contrast 10.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #3a3f21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #3a3f21 in the Color Lab