Skip to content

#2f8d3f

a dark, vivid green · cool · closest name: Forest Green

RGB
47, 141, 63
HSL
130°, 50%, 37%
CMYK
67, 0, 55, 45
Luminance
0.2001

At a glance

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

Hex
#2f8d3f
Hue
130°
green
Saturation
50%
vivid
Lightness
37%
dark
Brightness
55%
HSV value
Perceived
44%
weighted brightness
Luminance
0.2001
WCAG relative
Temperature
Cool
67/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
5.00:1
Closest name
Forest Green
ΔE2000 4.1
Where it sits
Hue130° of 360°
Saturation50%
Lightness37%
Temperature
Warm ← → Cool67% 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#2f8d3f
RGBrgb(47, 141, 63)
HSLhsl(130, 50%, 37%)
CMYKcmyk(67%, 0%, 55%, 45%)
LABlab(51.9 -44.5 33.4)
LCHlch(51.9 55.6 143.1)
OKLCHoklch(0.570 0.144 146.4)
Decimal3116351
Display P3color(display-p3 0.184 0.553 0.247)

Copy-ready code

/* CSS */
color: #2f8d3f;
background-color: #2f8d3f;
/* Tailwind (arbitrary) */
class="text-[#2f8d3f] bg-[#2f8d3f]"
/* SCSS */
$brand: #2f8d3f;
/* SwiftUI */
Color(red: 0.184, green: 0.553, blue: 0.247)
/* Android */
Color.parseColor("#2f8d3f")
/* Flutter */
Color(0xFF2F8D3F)
/* Python / OpenCV (BGR) */
(63, 141, 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#000000 on #2f8d3f · 5.00:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.20:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.00:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #2f8d3f as text scores 4.20:1 on white and 5.00:1 on black.

Accessibility — WCAG contrast

Aa
#2f8d3f on white: 4.20:1
AA ✗ fail · AA-large · AAA
Aa
#2f8d3f on black: 5.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8F8038
deuteranopia · #837845
tritanopia · #138A7B

Color scale — 50 to 950

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

#F4FAF5
#EAF6EC
#CFECD4
#ABE3B4
#81D58F
#57C76A
#3DB852
#2f8d3f
#297A37
#21592B
#15381B
Base = 700Lightest = 50 · #F4FAF5Darkest = 950 · #15381B
:root {
  --brand-50: #F4FAF5;
  --brand-100: #EAF6EC;
  --brand-200: #CFECD4;
  --brand-300: #ABE3B4;
  --brand-400: #81D58F;
  --brand-500: #57C76A;
  --brand-600: #3DB852;
  --brand-700: #2f8d3f;
  --brand-800: #297A37;
  --brand-900: #21592B;
  --brand-950: #15381B;
  --brand: #2f8d3f;
  --brand-ink: #000000;
}

Colors that work with #2f8d3f

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

Text on it#000000
Black wins here
Surface#F4FAF5
Tinted page background
Border#C2EBC9
Hairlines and dividers
Muted text#4B9B58
Captions on the surface
Accent#892B91
Second voice, not a rival
Dark variant#20602B
Hover, pressed, headers
Light variant#ECF9EE
Selected rows, tints
Dark surface#142416
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 #2f8d3f

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

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • 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#8D2F7D
Analogous left#4E8D2F
Analogous right#2F8D6E
Split-complement 1#6E2F8D
Split-complement 2#8D2F4E
Triadic 1#3F2F8D
Triadic 2#8D3F2F
Tetradic#2F4E8D

RGB percentages

Red18.4%
Green55.3%
Blue24.7%

CMYK percentages

Cyan66.7%
Magenta0.0%
Yellow55.3%
Key (black)44.7%

Color previews

#2f8d3f text on a black background

contrast 5.00:1

Card sample

#2f8d3f text on a white background

contrast 4.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f8d3f

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.

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

#2f8d3f, answered

What color is #2f8d3f?

#2f8d3f is a dark vivid green, closest to Forest Green (ΔE2000 4.1). It sits at 130° on the hue wheel with 50% saturation and 37% lightness, which reads as cool.

What is the RGB value of #2f8d3f?

rgb(47, 141, 63) — 47 red, 141 green and 63 blue out of 255, or 18.4% / 55.3% / 24.7% by channel.

Is #2f8d3f a light or a dark color?

It is a mid-tone. Relative luminance is 0.2001 and perceived brightness is 44%, so black text on it reaches 5.00:1.

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

Black. It scores 5.00:1 against #2f8d3f, versus 4.20:1 for white — AA at any size.

What is the complementary color of #2f8d3f?

#8D2F7D sits directly opposite on the wheel. Softer options are the split-complements #6E2F8D and #8D2F4E, which give the same contrast with far less vibration.

What colors go well with #2f8d3f?

For interface work: #F4FAF5 as the surface, #C2EBC9 for borders, #4B9B58 for secondary text, #892B91 as an accent and #20602B for hover and pressed states. For a palette, the analogous pair #4E8D2F and #2F8D6E stays calm, while #8D2F7D is the loudest partner.

What is #2f8d3f in CMYK for printing?

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

Is #2f8d3f warm or cool?

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

Work with #2f8d3f in the Color Lab