Skip to content

#2f4f3d

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

RGB
47, 79, 61
HSL
146°, 25%, 25%
CMYK
41, 0, 23, 69
Luminance
0.0653

At a glance

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

Hex
#2f4f3d
Hue
146°
green
Saturation
25%
soft
Lightness
25%
deep
Brightness
31%
HSV value
Perceived
27%
weighted brightness
Luminance
0.0653
WCAG relative
Temperature
Cool
67/100 cool
Color family
Green
Tone
Soft
Best ink
White
9.10:1
Closest name
Dark Slate Gray
ΔE2000 8.7
Where it sits
Hue146° of 360°
Saturation25%
Lightness25%
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#2f4f3d
RGBrgb(47, 79, 61)
HSLhsl(146, 25%, 25%)
CMYKcmyk(41%, 0%, 23%, 69%)
LABlab(30.7 -16.4 7.0)
LCHlch(30.7 17.9 157.0)
OKLCHoklch(0.397 0.049 158.5)
Decimal3100477
Display P3color(display-p3 0.184 0.310 0.239)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f4f3d on white: 9.10:1
AA ✓ pass · AA-large · AAA
Aa
#2f4f3d on black: 2.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4E4A3C
deuteranopia · #49473E
tritanopia · #284F4A

Color scale — 50 to 950

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

#F6F9F7
#EDF3EF
#D6E5DD
#B9D5C5
#95C0A8
#72AB8B
#5B9977
#4C8063
#3D664F
#2f4f3d
#1D2F25
Base = 900Lightest = 50 · #F6F9F7Darkest = 950 · #1D2F25
:root {
  --brand-50: #F6F9F7;
  --brand-100: #EDF3EF;
  --brand-200: #D6E5DD;
  --brand-300: #B9D5C5;
  --brand-400: #95C0A8;
  --brand-500: #72AB8B;
  --brand-600: #5B9977;
  --brand-700: #4C8063;
  --brand-800: #3D664F;
  --brand-900: #2f4f3d;
  --brand-950: #1D2F25;
  --brand: #2f4f3d;
  --brand-ink: #ffffff;
}

Colors that work with #2f4f3d

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#F5F9F7
Tinted page background
Border#CCE1D5
Hairlines and dividers
Muted text#56906F
Captions on the surface
Accent#522C4B
Second voice, not a rival
Dark variant#30503E
Hover, pressed, headers
Light variant#EFF5F2
Selected rows, tints
Dark surface#15231B
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 #2f4f3d

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#4F2F41
Analogous left#314F2F
Analogous right#2F4F4D
Split-complement 1#4D2F4F
Split-complement 2#4F2F31
Triadic 1#3D2F4F
Triadic 2#4F3D2F
Tetradic#2F314F

RGB percentages

Red18.4%
Green31.0%
Blue23.9%

CMYK percentages

Cyan40.5%
Magenta0.0%
Yellow22.8%
Key (black)69.0%

Color previews

#2f4f3d text on a black background

contrast 2.31:1

Card sample

#2f4f3d text on a white background

contrast 9.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f4f3d

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.

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

#2f4f3d, answered

What color is #2f4f3d?

#2f4f3d is a deep soft green, closest to Dark Slate Gray (ΔE2000 8.7). It sits at 146° on the hue wheel with 25% saturation and 25% lightness, which reads as cool.

What is the RGB value of #2f4f3d?

rgb(47, 79, 61) — 47 red, 79 green and 61 blue out of 255, or 18.4% / 31% / 23.9% by channel.

Is #2f4f3d a light or a dark color?

It is a dark color. Relative luminance is 0.0653 and perceived brightness is 27%, so white text on it reaches 9.10:1.

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

White. It scores 9.10:1 against #2f4f3d, versus 2.31:1 for black — AAA at any size.

What is the complementary color of #2f4f3d?

#4F2F41 sits directly opposite on the wheel. Softer options are the split-complements #4D2F4F and #4F2F31, which give the same contrast with far less vibration.

What colors go well with #2f4f3d?

For interface work: #F5F9F7 as the surface, #CCE1D5 for borders, #56906F for secondary text, #522C4B as an accent and #30503E for hover and pressed states. For a palette, the analogous pair #314F2F and #2F4F4D stays calm, while #4F2F41 is the loudest partner.

What is #2f4f3d in CMYK for printing?

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

Is #2f4f3d 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 #2F4F31; nudged cooler, #2E504A.

Work with #2f4f3d in the Color Lab