Skip to content

#2f2d2d

a deep, muted gray · neutral · closest name: Black

RGB
47, 45, 45
HSL
0°, 2%, 18%
CMYK
0, 4, 4, 82
Luminance
0.0267

At a glance

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

Hex
#2f2d2d
Hue
gray
Saturation
2%
muted
Lightness
18%
deep
Brightness
18%
HSV value
Perceived
18%
weighted brightness
Luminance
0.0267
WCAG relative
Temperature
Neutral
48/100 cool
Color family
Gray
Tone
Muted
Best ink
White
13.69:1
Closest name
Black
ΔE2000 11.7
Where it sits
Hue0° of 360°
Saturation2%
Lightness18%
Temperature
Warm ← → Cool48% cool

Near-neutral, so temperature is a whisper rather than a statement — the tinted siblings below show which way it can lean.

Every format

HEX#2f2d2d
RGBrgb(47, 45, 45)
HSLhsl(0, 2%, 18%)
CMYKcmyk(0%, 4%, 4%, 82%)
LABlab(18.7 0.9 0.3)
LCHlch(18.7 1.0 19.6)
OKLCHoklch(0.299 0.003 17.3)
Decimal3091757
Display P3color(display-p3 0.184 0.176 0.176)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2d2d on white: 13.69:1
AA ✓ pass · AA-large · AAA
Aa
#2f2d2d on black: 1.53:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2D2D2D
deuteranopia · #2E2E2D
tritanopia · #2F2D2D

Color scale — 50 to 950

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

#F7F7F7
#F0EFEF
#DEDDDD
#C8C6C6
#ADA9A9
#918C8C
#7D7878
#686464
#535050
#3E3C3C
#2f2d2d
Base = 950Lightest = 50 · #F7F7F7Darkest = 950 · #2f2d2d
:root {
  --brand-50: #F7F7F7;
  --brand-100: #F0EFEF;
  --brand-200: #DEDDDD;
  --brand-300: #C8C6C6;
  --brand-400: #ADA9A9;
  --brand-500: #918C8C;
  --brand-600: #7D7878;
  --brand-700: #686464;
  --brand-800: #535050;
  --brand-900: #3E3C3C;
  --brand-950: #2f2d2d;
  --brand: #2f2d2d;
  --brand-ink: #ffffff;
}

Colors that work with #2f2d2d

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#F8F7F7
Tinted page background
Border#D7D5D5
Hairlines and dividers
Muted text#757070
Captions on the surface
Accent#2B312F
Second voice, not a rival
Dark variant#413E3E
Hover, pressed, headers
Light variant#F3F2F2
Selected rows, tints
Dark surface#1D1B1B
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 #2f2d2d

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

Works well for
  • Body text and links on white
  • Borders, dividers and quiet backgrounds
  • Long-form reading surfaces
  • Headers, footers and dark-mode surfaces
  • Neutral UI chrome and typography
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#2D2F2F
Analogous left#2F2D2E
Analogous right#2F2E2D
Split-complement 1#2D2F2E
Split-complement 2#2D2E2F
Triadic 1#2D2F2D
Triadic 2#2D2D2F
Tetradic#2E2F2D

RGB percentages

Red18.4%
Green17.6%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta4.3%
Yellow4.3%
Key (black)81.6%

Color previews

#2f2d2d text on a black background

contrast 1.53:1

Card sample

#2f2d2d text on a white background

contrast 13.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f2d2d

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.

#2f2d2d in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
EditorialArchitectureEnterpriseLuxury goods
Common UI roles
BackgroundsBordersBody textDividers
Print note

Converts to four-color process without much drama. Proof it anyway.

#2f2d2d, answered

What color is #2f2d2d?

#2f2d2d is a deep muted gray, closest to Black (ΔE2000 11.7). It sits at 0° on the hue wheel with 2% saturation and 18% lightness, which reads as neutral.

What is the RGB value of #2f2d2d?

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

Is #2f2d2d a light or a dark color?

It is a dark color. Relative luminance is 0.0267 and perceived brightness is 18%, so white text on it reaches 13.69:1.

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

White. It scores 13.69:1 against #2f2d2d, versus 1.53:1 for black — AAA at any size.

What is the complementary color of #2f2d2d?

#2D2F2F sits directly opposite on the wheel. Softer options are the split-complements #2D2F2E and #2D2E2F, which give the same contrast with far less vibration.

What colors go well with #2f2d2d?

For interface work: #F8F7F7 as the surface, #D7D5D5 for borders, #757070 for secondary text, #2B312F as an accent and #413E3E for hover and pressed states. For a palette, the analogous pair #2F2D2E and #2F2E2D stays calm, while #2D2F2F is the loudest partner.

What is #2f2d2d in CMYK for printing?

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

Is #2f2d2d warm or cool?

Neutral — it scores 48 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #3A322C; nudged cooler, #23292F.

Work with #2f2d2d in the Color Lab