Skip to content

#2f372f

a deep, muted gray · cool · closest name: darkslategray

RGB
47, 55, 47
HSL
120°, 8%, 20%
CMYK
15, 0, 15, 78
Luminance
0.0354

Every format

HEX#2f372f
RGBrgb(47, 55, 47)
HSLhsl(120, 8%, 20%)
CMYKcmyk(15%, 0%, 15%, 78%)
LABlab(22.1 -5.3 3.9)
LCHlch(22.1 6.6 143.7)
OKLCHoklch(0.327 0.018 145.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f372f on white: 12.29:1
AA ✓ pass · AA-large · AAA
Aa
#2f372f on black: 1.71:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green21.6%
Blue18.4%

CMYK percentages

Cyan14.5%
Magenta0.0%
Yellow14.5%
Key (black)78.4%

Color previews

#2f372f text on a black background

contrast 1.71:1

Card sample

#2f372f text on a white background

contrast 12.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f372f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f372f in the Color Lab