Skip to content

#2f4a39

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

RGB
47, 74, 57
HSL
142°, 22%, 24%
CMYK
37, 0, 23, 71
Luminance
0.0580

Every format

HEX#2f4a39
RGBrgb(47, 74, 57)
HSLhsl(142, 22%, 24%)
CMYKcmyk(37%, 0%, 23%, 71%)
LABlab(28.9 -14.5 7.0)
LCHlch(28.9 16.1 154.4)
OKLCHoklch(0.382 0.044 156.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f4a39 on white: 9.72:1
AA ✓ pass · AA-large · AAA
Aa
#2f4a39 on black: 2.16:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green29.0%
Blue22.4%

CMYK percentages

Cyan36.5%
Magenta0.0%
Yellow23.0%
Key (black)71.0%

Color previews

#2f4a39 text on a black background

contrast 2.16:1

Card sample

#2f4a39 text on a white background

contrast 9.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 74, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 74, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f4a39;
background: linear-gradient(135deg, #2f4a39, #2F494A);

Monochromatic scale

Palettes built from #2f4a39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f4a39 in the Color Lab