Skip to content

#2f4b2d

a deep, soft green · neutral · closest name: Dark Slate Gray

RGB
47, 75, 45
HSL
116°, 25%, 24%
CMYK
37, 0, 40, 71
Luminance
0.0583

At a glance

Every number on this page in one read: what #2f4b2d is made of, how bright it looks, and which way it leans.

Hex
#2f4b2d
Hue
116°
green
Saturation
25%
soft
Lightness
24%
deep
Brightness
29%
HSV value
Perceived
25%
weighted brightness
Luminance
0.0583
WCAG relative
Temperature
Neutral
58/100 cool
Color family
Green
Tone
Soft
Best ink
White
9.70:1
Closest name
Dark Slate Gray
ΔE2000 13.4
Where it sits
Hue116° of 360°
Saturation25%
Lightness24%
Temperature
Warm ← → Cool58% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#2f4b2d
RGBrgb(47, 75, 45)
HSLhsl(116, 25%, 24%)
CMYKcmyk(37%, 0%, 40%, 71%)
LABlab(29.0 -17.6 14.6)
LCHlch(29.0 22.9 140.3)
OKLCHoklch(0.382 0.060 142.8)
Decimal3099437
Display P3color(display-p3 0.184 0.294 0.176)

Copy-ready code

/* CSS */
color: #2f4b2d;
background-color: #2f4b2d;
/* Tailwind (arbitrary) */
class="text-[#2f4b2d] bg-[#2f4b2d]"
/* SCSS */
$brand: #2f4b2d;
/* SwiftUI */
Color(red: 0.184, green: 0.294, blue: 0.176)
/* Android */
Color.parseColor("#2f4b2d")
/* Flutter */
Color(0xFF2F4B2D)
/* Python / OpenCV (BGR) */
(45, 75, 47)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #2f4b2d · 9.70:1
Use #ffffffAAA at every size.
Aa
White text · 9.70:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.17:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2f4b2d as text scores 9.70:1 on white and 2.17:1 on black.

Accessibility — WCAG contrast

Aa
#2f4b2d on white: 9.70:1
AA ✓ pass · AA-large · AAA
Aa
#2f4b2d on black: 2.17:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4C462B
deuteranopia · #48432F
tritanopia · #2C4943

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2f4b2d is pinned to step 900; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F6F9F6
#EDF3ED
#D8E5D7
#BBD5B9
#99C096
#76AB73
#60995C
#50804D
#40663D
#2f4b2d
#1F2F1D
Base = 900Lightest = 50 · #F6F9F6Darkest = 950 · #1F2F1D
:root {
  --brand-50: #F6F9F6;
  --brand-100: #EDF3ED;
  --brand-200: #D8E5D7;
  --brand-300: #BBD5B9;
  --brand-400: #99C096;
  --brand-500: #76AB73;
  --brand-600: #60995C;
  --brand-700: #50804D;
  --brand-800: #40663D;
  --brand-900: #2f4b2d;
  --brand-950: #1F2F1D;
  --brand: #2f4b2d;
  --brand-ink: #ffffff;
}

Colors that work with #2f4b2d

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F6F9F5
Tinted page background
Border#CDE0CC
Hairlines and dividers
Muted text#5A8F56
Captions on the surface
Accent#422B4D
Second voice, not a rival
Dark variant#325030
Hover, pressed, headers
Light variant#EFF5EF
Selected rows, tints
Dark surface#162315
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #2f4b2d

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#492D4B
Analogous left#3E4B2D
Analogous right#2D4B3A
Split-complement 1#3A2D4B
Split-complement 2#4B2D3E
Triadic 1#2D2F4B
Triadic 2#4B2D2F
Tetradic#2D3E4B

RGB percentages

Red18.4%
Green29.4%
Blue17.6%

CMYK percentages

Cyan37.3%
Magenta0.0%
Yellow40.0%
Key (black)70.6%

Color previews

#2f4b2d text on a black background

contrast 2.17:1

Card sample

#2f4b2d text on a white background

contrast 9.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f4b2d

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#2f4b2d in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#2f4b2d, answered

What color is #2f4b2d?

#2f4b2d is a deep soft green, closest to Dark Slate Gray (ΔE2000 13.4). It sits at 116° on the hue wheel with 25% saturation and 24% lightness, which reads as neutral.

What is the RGB value of #2f4b2d?

rgb(47, 75, 45) — 47 red, 75 green and 45 blue out of 255, or 18.4% / 29.4% / 17.6% by channel.

Is #2f4b2d a light or a dark color?

It is a dark color. Relative luminance is 0.0583 and perceived brightness is 25%, so white text on it reaches 9.70:1.

Should I use black or white text on #2f4b2d?

White. It scores 9.70:1 against #2f4b2d, versus 2.17:1 for black — AAA at any size.

What is the complementary color of #2f4b2d?

#492D4B sits directly opposite on the wheel. Softer options are the split-complements #3A2D4B and #4B2D3E, which give the same contrast with far less vibration.

What colors go well with #2f4b2d?

For interface work: #F6F9F5 as the surface, #CDE0CC for borders, #5A8F56 for secondary text, #422B4D as an accent and #325030 for hover and pressed states. For a palette, the analogous pair #3E4B2D and #2D4B3A stays calm, while #492D4B is the loudest partner.

What is #2f4b2d in CMYK for printing?

cmyk(37%, 0%, 40%, 71%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #2f4b2d warm or cool?

Neutral — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #3A4B2D; nudged cooler, #2C4C35.

Work with #2f4b2d in the Color Lab