Skip to content

#2f4d39

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

RGB
47, 77, 57
HSL
140°, 24%, 24%
CMYK
39, 0, 26, 70
Luminance
0.0621

Every format

HEX#2f4d39
RGBrgb(47, 77, 57)
HSLhsl(140, 24%, 24%)
CMYKcmyk(39%, 0%, 26%, 70%)
LABlab(29.9 -16.2 8.4)
LCHlch(29.9 18.3 152.6)
OKLCHoklch(0.390 0.050 154.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f4d39 on white: 9.37:1
AA ✓ pass · AA-large · AAA
Aa
#2f4d39 on black: 2.24:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green30.2%
Blue22.4%

CMYK percentages

Cyan39.0%
Magenta0.0%
Yellow26.0%
Key (black)69.8%

Color previews

#2f4d39 text on a black background

contrast 2.24:1

Card sample

#2f4d39 text on a white background

contrast 9.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f4d39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f4d39 in the Color Lab