Skip to content

#2f5d2f

a dark, soft green · cool · closest name: Dark Green

RGB
47, 93, 47
HSL
120°, 33%, 28%
CMYK
50, 0, 50, 64
Luminance
0.0864

At a glance

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

Hex
#2f5d2f
Hue
120°
green
Saturation
33%
soft
Lightness
28%
dark
Brightness
36%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0864
WCAG relative
Temperature
Cool
62/100 cool
Color family
Green
Tone
Soft
Best ink
White
7.70:1
Closest name
Dark Green
ΔE2000 8.6
Where it sits
Hue120° of 360°
Saturation33%
Lightness28%
Temperature
Warm ← → Cool62% cool

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

Every format

HEX#2f5d2f
RGBrgb(47, 93, 47)
HSLhsl(120, 33%, 28%)
CMYKcmyk(50%, 0%, 50%, 64%)
LABlab(35.3 -26.5 21.6)
LCHlch(35.3 34.2 140.8)
OKLCHoklch(0.433 0.089 143.8)
Decimal3104047
Display P3color(display-p3 0.184 0.365 0.184)

Copy-ready code

/* CSS */
color: #2f5d2f;
background-color: #2f5d2f;
/* Tailwind (arbitrary) */
class="text-[#2f5d2f] bg-[#2f5d2f]"
/* SCSS */
$brand: #2f5d2f;
/* SwiftUI */
Color(red: 0.184, green: 0.365, blue: 0.184)
/* Android */
Color.parseColor("#2f5d2f")
/* Flutter */
Color(0xFF2F5D2F)
/* Python / OpenCV (BGR) */
(47, 93, 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 #2f5d2f · 7.70:1
Use #ffffffAAA at every size.
Aa
White text · 7.70:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.73:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2f5d2f as text scores 7.70:1 on white and 2.73:1 on black.

Accessibility — WCAG contrast

Aa
#2f5d2f on white: 7.70:1
AA ✓ pass · AA-large · AAA
Aa
#2f5d2f on black: 2.73:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5F562B
deuteranopia · #585132
tritanopia · #295B52

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2f5d2f 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.

#F5F9F5
#ECF4EC
#D4E7D4
#B4D9B4
#8FC78F
#6AB46A
#52A352
#448844
#376C37
#2f5d2f
#1B321B
Base = 900Lightest = 50 · #F5F9F5Darkest = 950 · #1B321B
:root {
  --brand-50: #F5F9F5;
  --brand-100: #ECF4EC;
  --brand-200: #D4E7D4;
  --brand-300: #B4D9B4;
  --brand-400: #8FC78F;
  --brand-500: #6AB46A;
  --brand-600: #52A352;
  --brand-700: #448844;
  --brand-800: #376C37;
  --brand-900: #2f5d2f;
  --brand-950: #1B321B;
  --brand: #2f5d2f;
  --brand-ink: #ffffff;
}

Colors that work with #2f5d2f

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#F5FAF5
Tinted page background
Border#C9E4C9
Hairlines and dividers
Muted text#4D994D
Captions on the surface
Accent#532C60
Second voice, not a rival
Dark variant#2B552B
Hover, pressed, headers
Light variant#EEF6EE
Selected rows, tints
Dark surface#142414
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 #2f5d2f

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#5D2F5D
Analogous left#465D2F
Analogous right#2F5D46
Split-complement 1#462F5D
Split-complement 2#5D2F46
Triadic 1#2F2F5D
Triadic 2#5D2F2F
Tetradic#2F465D

RGB percentages

Red18.4%
Green36.5%
Blue18.4%

CMYK percentages

Cyan49.5%
Magenta0.0%
Yellow49.5%
Key (black)63.5%

Color previews

#2f5d2f text on a black background

contrast 2.73:1

Card sample

#2f5d2f text on a white background

contrast 7.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f5d2f

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.

#2f5d2f 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.

#2f5d2f, answered

What color is #2f5d2f?

#2f5d2f is a dark soft green, closest to Dark Green (ΔE2000 8.6). It sits at 120° on the hue wheel with 33% saturation and 28% lightness, which reads as cool.

What is the RGB value of #2f5d2f?

rgb(47, 93, 47) — 47 red, 93 green and 47 blue out of 255, or 18.4% / 36.5% / 18.4% by channel.

Is #2f5d2f a light or a dark color?

It is a dark color. Relative luminance is 0.0864 and perceived brightness is 30%, so white text on it reaches 7.70:1.

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

White. It scores 7.70:1 against #2f5d2f, versus 2.73:1 for black — AAA at any size.

What is the complementary color of #2f5d2f?

#5D2F5D sits directly opposite on the wheel. Softer options are the split-complements #462F5D and #5D2F46, which give the same contrast with far less vibration.

What colors go well with #2f5d2f?

For interface work: #F5FAF5 as the surface, #C9E4C9 for borders, #4D994D for secondary text, #532C60 as an accent and #2B552B for hover and pressed states. For a palette, the analogous pair #465D2F and #2F5D46 stays calm, while #5D2F5D is the loudest partner.

What is #2f5d2f in CMYK for printing?

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

Is #2f5d2f warm or cool?

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #405D2F; nudged cooler, #2E5F40.

Work with #2f5d2f in the Color Lab