Skip to content

#2f4d3f

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

RGB
47, 77, 63
HSL
152°, 24%, 24%
CMYK
39, 0, 18, 70
Luminance
0.0627

At a glance

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

Hex
#2f4d3f
Hue
152°
green
Saturation
24%
soft
Lightness
24%
deep
Brightness
30%
HSV value
Perceived
27%
weighted brightness
Luminance
0.0627
WCAG relative
Temperature
Cool
68/100 cool
Color family
Green
Tone
Soft
Best ink
White
9.32:1
Closest name
Dark Slate Gray
ΔE2000 7.1
Where it sits
Hue152° of 360°
Saturation24%
Lightness24%
Temperature
Warm ← → Cool68% 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#2f4d3f
RGBrgb(47, 77, 63)
HSLhsl(152, 24%, 24%)
CMYKcmyk(39%, 0%, 18%, 70%)
LABlab(30.1 -14.8 4.8)
LCHlch(30.1 15.6 162.1)
OKLCHoklch(0.392 0.043 163.4)
Decimal3099967
Display P3color(display-p3 0.184 0.302 0.247)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f4d3f on white: 9.32:1
AA ✓ pass · AA-large · AAA
Aa
#2f4d3f on black: 2.25:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4C493E
deuteranopia · #474540
tritanopia · #284D49

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2f4d3f 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
#EDF3F0
#D7E5DE
#B9D4C8
#96BFAC
#74AA91
#5D987C
#4D7F68
#3E6553
#2f4d3f
#1E2F27
Base = 900Lightest = 50 · #F6F9F7Darkest = 950 · #1E2F27
:root {
  --brand-50: #F6F9F7;
  --brand-100: #EDF3F0;
  --brand-200: #D7E5DE;
  --brand-300: #B9D4C8;
  --brand-400: #96BFAC;
  --brand-500: #74AA91;
  --brand-600: #5D987C;
  --brand-700: #4D7F68;
  --brand-800: #3E6553;
  --brand-900: #2f4d3f;
  --brand-950: #1E2F27;
  --brand: #2f4d3f;
  --brand-ink: #ffffff;
}

Colors that work with #2f4d3f

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#CCE0D7
Hairlines and dividers
Muted text#578F75
Captions on the surface
Accent#4F2C46
Second voice, not a rival
Dark variant#304F41
Hover, pressed, headers
Light variant#EFF5F2
Selected rows, tints
Dark surface#15231D
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 #2f4d3f

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#4D2F3D
Analogous left#2F4D30
Analogous right#2F4C4D
Split-complement 1#4D2F4C
Split-complement 2#4D302F
Triadic 1#3F2F4D
Triadic 2#4D3F2F
Tetradic#302F4D

RGB percentages

Red18.4%
Green30.2%
Blue24.7%

CMYK percentages

Cyan39.0%
Magenta0.0%
Yellow18.2%
Key (black)69.8%

Color previews

#2f4d3f text on a black background

contrast 2.25:1

Card sample

#2f4d3f text on a white background

contrast 9.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f4d3f

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.

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

#2f4d3f, answered

What color is #2f4d3f?

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

What is the RGB value of #2f4d3f?

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

Is #2f4d3f a light or a dark color?

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

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

White. It scores 9.32:1 against #2f4d3f, versus 2.25:1 for black — AAA at any size.

What is the complementary color of #2f4d3f?

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

What colors go well with #2f4d3f?

For interface work: #F5F9F7 as the surface, #CCE0D7 for borders, #578F75 for secondary text, #4F2C46 as an accent and #304F41 for hover and pressed states. For a palette, the analogous pair #2F4D30 and #2F4C4D stays calm, while #4D2F3D is the loudest partner.

What is #2f4d3f in CMYK for printing?

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

Is #2f4d3f warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2F4D34; nudged cooler, #2E4E4B.

Work with #2f4d3f in the Color Lab