Skip to content

#2f5f3c

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

RGB
47, 95, 60
HSL
136°, 34%, 28%
CMYK
51, 0, 37, 63
Luminance
0.0911

At a glance

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

Hex
#2f5f3c
Hue
136°
green
Saturation
34%
soft
Lightness
28%
dark
Brightness
37%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0911
WCAG relative
Temperature
Cool
69/100 cool
Color family
Green
Tone
Soft
Best ink
White
7.44:1
Closest name
Dark Olive Green
ΔE2000 11
Where it sits
Hue136° of 360°
Saturation34%
Lightness28%
Temperature
Warm ← → Cool69% 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#2f5f3c
RGBrgb(47, 95, 60)
HSLhsl(136, 34%, 28%)
CMYKcmyk(51%, 0%, 37%, 63%)
LABlab(36.2 -25.1 15.1)
LCHlch(36.2 29.3 148.9)
OKLCHoklch(0.441 0.078 150.9)
Decimal3104572
Display P3color(display-p3 0.184 0.373 0.235)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f5f3c on white: 7.44:1
AA ✓ pass · AA-large · AAA
Aa
#2f5f3c on black: 2.82:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5F583A
deuteranopia · #58533E
tritanopia · #255E56

Color scale — 50 to 950

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

#F5F9F6
#ECF4EE
#D4E8D9
#B4DABE
#8EC79E
#69B57D
#51A467
#448856
#366D45
#2f5f3c
#1A3221
Base = 900Lightest = 50 · #F5F9F6Darkest = 950 · #1A3221
:root {
  --brand-50: #F5F9F6;
  --brand-100: #ECF4EE;
  --brand-200: #D4E8D9;
  --brand-300: #B4DABE;
  --brand-400: #8EC79E;
  --brand-500: #69B57D;
  --brand-600: #51A467;
  --brand-700: #448856;
  --brand-800: #366D45;
  --brand-900: #2f5f3c;
  --brand-950: #1A3221;
  --brand: #2f5f3c;
  --brand-ink: #ffffff;
}

Colors that work with #2f5f3c

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#F5FAF6
Tinted page background
Border#C8E4D0
Hairlines and dividers
Muted text#4C9A61
Captions on the surface
Accent#622C61
Second voice, not a rival
Dark variant#2A5536
Hover, pressed, headers
Light variant#EEF7F0
Selected rows, tints
Dark surface#142418
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 #2f5f3c

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#5F2F52
Analogous left#3A5F2F
Analogous right#2F5F54
Split-complement 1#542F5F
Split-complement 2#5F2F3A
Triadic 1#3C2F5F
Triadic 2#5F3C2F
Tetradic#2F3A5F

RGB percentages

Red18.4%
Green37.3%
Blue23.5%

CMYK percentages

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

Color previews

#2f5f3c text on a black background

contrast 2.82:1

Card sample

#2f5f3c text on a white background

contrast 7.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f5f3c

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.

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

#2f5f3c, answered

What color is #2f5f3c?

#2f5f3c is a dark soft green, closest to Dark Olive Green (ΔE2000 11). It sits at 136° on the hue wheel with 34% saturation and 28% lightness, which reads as cool.

What is the RGB value of #2f5f3c?

rgb(47, 95, 60) — 47 red, 95 green and 60 blue out of 255, or 18.4% / 37.3% / 23.5% by channel.

Is #2f5f3c a light or a dark color?

It is a dark color. Relative luminance is 0.0911 and perceived brightness is 31%, so white text on it reaches 7.44:1.

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

White. It scores 7.44:1 against #2f5f3c, versus 2.82:1 for black — AAA at any size.

What is the complementary color of #2f5f3c?

#5F2F52 sits directly opposite on the wheel. Softer options are the split-complements #542F5F and #5F2F3A, which give the same contrast with far less vibration.

What colors go well with #2f5f3c?

For interface work: #F5FAF6 as the surface, #C8E4D0 for borders, #4C9A61 for secondary text, #622C61 as an accent and #2A5536 for hover and pressed states. For a palette, the analogous pair #3A5F2F and #2F5F54 stays calm, while #5F2F52 is the loudest partner.

What is #2f5f3c in CMYK for printing?

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

Is #2f5f3c warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #345F2F; nudged cooler, #2E604E.

Work with #2f5f3c in the Color Lab