Skip to content

#2f5f3d

a dark, soft green · cool · closest name: seagreen

RGB
47, 95, 61
HSL
138°, 34%, 28%
CMYK
51, 0, 36, 63
Luminance
0.0913

Every format

HEX#2f5f3d
RGBrgb(47, 95, 61)
HSLhsl(138, 34%, 28%)
CMYKcmyk(51%, 0%, 36%, 63%)
LABlab(36.2 -24.9 14.6)
LCHlch(36.2 28.8 149.6)
OKLCHoklch(0.442 0.077 151.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f5f3d on white: 7.43:1
AA ✓ pass · AA-large · AAA
Aa
#2f5f3d on black: 2.83:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green37.3%
Blue23.9%

CMYK percentages

Cyan50.5%
Magenta0.0%
Yellow35.8%
Key (black)62.7%

Color previews

#2f5f3d text on a black background

contrast 2.83:1

Card sample

#2f5f3d text on a white background

contrast 7.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f5f3d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f5f3d in the Color Lab