#2d2f2e
a deep, muted gray · neutral · closest name: Black
At a glance
Every number on this page in one read: what #2d2f2e is made of, how bright it looks, and which way it leans.
Near-neutral, so temperature is a whisper rather than a statement — the tinted siblings below show which way it can lean.
Every format
| HEX | #2d2f2e |
| RGB | rgb(45, 47, 46) |
| HSL | hsl(150, 2%, 18%) |
| CMYK | cmyk(4%, 0%, 2%, 82%) |
| LAB | lab(19.2 -1.1 0.3) |
| LCH | lch(19.2 1.2 163.6) |
| OKLCH | oklch(0.303 0.003 164.9) |
| Decimal | 2961198 |
| Display P3 | color(display-p3 0.176 0.184 0.180) |
Copy-ready code
/* CSS */
color: #2d2f2e;
background-color: #2d2f2e;
/* Tailwind (arbitrary) */
class="text-[#2d2f2e] bg-[#2d2f2e]"
/* SCSS */
$brand: #2d2f2e;
/* SwiftUI */
Color(red: 0.176, green: 0.184, blue: 0.180)
/* Android */
Color.parseColor("#2d2f2e")
/* Flutter */
Color(0xFF2D2F2E)
/* Python / OpenCV (BGR) */
(46, 47, 45)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #2d2f2e 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.
:root {
--brand-50: #F7F7F7;
--brand-100: #EFF0F0;
--brand-200: #DDDEDE;
--brand-300: #C6C8C7;
--brand-400: #A9ADAB;
--brand-500: #8C918F;
--brand-600: #787D7A;
--brand-700: #646866;
--brand-800: #505352;
--brand-900: #3C3E3D;
--brand-950: #2d2f2e;
--brand: #2d2f2e;
--brand-ink: #ffffff;
}Colors that work with #2d2f2e
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #2d2f2e
Derived from its contrast, chroma and lightness — not from taste.
- ✓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
- ⚠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 | #2F2D2E | Directly opposite — maximum tension | |
| Analogous left | #2D2F2D | Neighbour, quieter | |
| Analogous right | #2D2F2F | Neighbour, quieter | |
| Split-complement 1 | #2F2D2F | Contrast without the clash | |
| Split-complement 2 | #2F2D2D | Contrast without the clash | |
| Triadic 1 | #2E2D2F | Even thirds — balanced and loud | |
| Triadic 2 | #2F2E2D | Even thirds — balanced and loud | |
| Tetradic | #2D2D2F | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#2d2f2e text on a black background
contrast 1.56:1
#2d2f2e text on a white background
contrast 13.48:1
CSS3 live lab
The quick brown fox
color: #2d2f2e;
background-color: #2d2f2e;
Glowing headline
text-shadow: 2px 2px 8px #2d2f2e;
Soft neon halo
text-shadow: 0 0 14px rgba(45, 47, 46, 0.45);
box-shadow: 0 12px 32px -8px rgba(45, 47, 46, 0.45);
border: 3px solid #2d2f2e; background: linear-gradient(135deg, #2d2f2e, #2D2F2F);
Monochromatic scale
Palettes built from #2d2f2e
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.
Closest color with a full write-up: Gunmetal (#2a3439) — ΔE2000 5 away, with its history, psychology and brand usage.
#2d2f2e in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#2d2f2e, answered
What color is #2d2f2e?
#2d2f2e is a deep muted gray, closest to Black (ΔE2000 12.1). It sits at 150° on the hue wheel with 2% saturation and 18% lightness, which reads as neutral.
What is the RGB value of #2d2f2e?
rgb(45, 47, 46) — 45 red, 47 green and 46 blue out of 255, or 17.6% / 18.4% / 18% by channel.
Is #2d2f2e a light or a dark color?
It is a dark color. Relative luminance is 0.0279 and perceived brightness is 18%, so white text on it reaches 13.48:1.
Should I use black or white text on #2d2f2e?
White. It scores 13.48:1 against #2d2f2e, versus 1.56:1 for black — AAA at any size.
What is the complementary color of #2d2f2e?
#2F2D2E sits directly opposite on the wheel. Softer options are the split-complements #2F2D2F and #2F2D2D, which give the same contrast with far less vibration.
What colors go well with #2d2f2e?
For interface work: #F7F8F7 as the surface, #D5D7D6 for borders, #707573 for secondary text, #312B2F as an accent and #3E4140 for hover and pressed states. For a palette, the analogous pair #2D2F2D and #2D2F2F stays calm, while #2F2D2E is the loudest partner.
What is #2d2f2e in CMYK for printing?
cmyk(4%, 0%, 2%, 82%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #2d2f2e warm or cool?
Neutral — it scores 52 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #3A322C; nudged cooler, #23292F.