Skip to content

#2a2f2c

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

RGB
42, 47, 44
HSL
144°, 6%, 18%
CMYK
11, 0, 6, 82
Luminance
0.0271

At a glance

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

Hex
#2a2f2c
Hue
144°
gray
Saturation
6%
muted
Lightness
18%
deep
Brightness
18%
HSV value
Perceived
18%
weighted brightness
Luminance
0.0271
WCAG relative
Temperature
Neutral
54/100 cool
Color family
Gray
Tone
Muted
Best ink
White
13.62:1
Closest name
Black
ΔE2000 12.4
Where it sits
Hue144° of 360°
Saturation6%
Lightness18%
Temperature
Warm ← → Cool54% 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#2a2f2c
RGBrgb(42, 47, 44)
HSLhsl(144, 6%, 18%)
CMYKcmyk(11%, 0%, 6%, 82%)
LABlab(18.8 -2.9 1.2)
LCHlch(18.8 3.1 158.0)
OKLCHoklch(0.299 0.009 159.5)
Decimal2764588
Display P3color(display-p3 0.165 0.184 0.173)

Copy-ready code

/* CSS */
color: #2a2f2c;
background-color: #2a2f2c;
/* Tailwind (arbitrary) */
class="text-[#2a2f2c] bg-[#2a2f2c]"
/* SCSS */
$brand: #2a2f2c;
/* SwiftUI */
Color(red: 0.165, green: 0.184, blue: 0.173)
/* Android */
Color.parseColor("#2a2f2c")
/* Flutter */
Color(0xFF2A2F2C)
/* Python / OpenCV (BGR) */
(44, 47, 42)

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 #2a2f2c · 13.62:1
Use #ffffffAAA at every size.
Aa
White text · 13.62:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.54:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2a2f2c as text scores 13.62:1 on white and 1.54:1 on black.

Accessibility — WCAG contrast

Aa
#2a2f2c on white: 13.62:1
AA ✓ pass · AA-large · AAA
Aa
#2a2f2c on black: 1.54:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2F2E2C
deuteranopia · #2E2E2C
tritanopia · #292F2E

Color scale — 50 to 950

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

#F7F8F7
#EFF0F0
#DCDFDE
#C4CAC6
#A6B0AA
#89958E
#748179
#606C65
#4D5651
#3A403D
#2a2f2c
Base = 950Lightest = 50 · #F7F8F7Darkest = 950 · #2a2f2c
:root {
  --brand-50: #F7F8F7;
  --brand-100: #EFF0F0;
  --brand-200: #DCDFDE;
  --brand-300: #C4CAC6;
  --brand-400: #A6B0AA;
  --brand-500: #89958E;
  --brand-600: #748179;
  --brand-700: #606C65;
  --brand-800: #4D5651;
  --brand-900: #3A403D;
  --brand-950: #2a2f2c;
  --brand: #2a2f2c;
  --brand-ink: #ffffff;
}

Colors that work with #2a2f2c

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#F7F8F7
Tinted page background
Border#D4D8D6
Hairlines and dividers
Muted text#6C7971
Captions on the surface
Accent#312830
Second voice, not a rival
Dark variant#3C433F
Hover, pressed, headers
Light variant#F2F3F2
Selected rows, tints
Dark surface#1A1E1C
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 #2a2f2c

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#2F2A2D
Analogous left#2B2F2A
Analogous right#2A2F2F
Split-complement 1#2F2A2F
Split-complement 2#2F2A2B
Triadic 1#2C2A2F
Triadic 2#2F2C2A
Tetradic#2A2B2F

RGB percentages

Red16.5%
Green18.4%
Blue17.3%

CMYK percentages

Cyan10.6%
Magenta0.0%
Yellow6.4%
Key (black)81.6%

Color previews

#2a2f2c text on a black background

contrast 1.54:1

Card sample

#2a2f2c text on a white background

contrast 13.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2a2f2c

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.

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

#2a2f2c, answered

What color is #2a2f2c?

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

What is the RGB value of #2a2f2c?

rgb(42, 47, 44) — 42 red, 47 green and 44 blue out of 255, or 16.5% / 18.4% / 17.3% by channel.

Is #2a2f2c a light or a dark color?

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

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

White. It scores 13.62:1 against #2a2f2c, versus 1.54:1 for black — AAA at any size.

What is the complementary color of #2a2f2c?

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

What colors go well with #2a2f2c?

For interface work: #F7F8F7 as the surface, #D4D8D6 for borders, #6C7971 for secondary text, #312830 as an accent and #3C433F for hover and pressed states. For a palette, the analogous pair #2B2F2A and #2A2F2F stays calm, while #2F2A2D is the loudest partner.

What is #2a2f2c in CMYK for printing?

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

Is #2a2f2c warm or cool?

Neutral — it scores 54 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #39312B; nudged cooler, #22272D.

Work with #2a2f2c in the Color Lab