Palettes / Colors / #2E342F
#2E342F — Charcoal
#2E342F is a gray color we call Charcoal, closest to the named color DarkSlateGray (#2F4F4F). It belongs to the gray family.
Color name
Closest CSS keyword: darkslategray (#2F4F4F) — not an exact match. CSS darkslategray gives you #2F4F4F, a different color; use #2E342F when you need this exact shade.
Sources: common names follow widely used color-name references; CSS keywords and their hex values follow the CSS Color specification.
#2E342F is a neutral gray color associated with neutrality and professionalism. It is deep enough for text, outlines and dark interface surfaces, and makes light colors glow next to it.
Its strongest partner is its complement #332E32; it also sits naturally between #2F332E and #2E3331. In the palettes below you can see it working alongside real color combinations from our collection.
Color values
| HEX | #2E342F |
|---|---|
| RGB | 46, 52, 47 |
| HSL | 130°, 6%, 19% |
| HSV | 130°, 12%, 20% |
| CMYK | 12%, 0%, 10%, 80% |
| XYZ | 2.87, 3.24, 3.16 |
| Yxy | 3.24, 0.3092, 0.3496 |
| CIE-Lab | 20.99, -3.77, 2.29 |
| Hunter Lab | 18.01, -2.15, 1.25 |
RGB & CMYK percentages
Red 18% · Green 20% · Blue 18%
Cyan 12% · Magenta 0% · Yellow 10% · Key 80%
CMYK values are unprofiled approximations for screen reference — not a print-proofing guarantee.
Previews
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
CSS code for #2E342F
.text { color: #2E342F; }
.background { background-color: #2E342F; }
.border { border: 3px solid #2E342F; }
.text-rgb { color: rgb(46, 52, 47); }
.text-hsl { color: hsl(130, 6%, 19%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #2E342F; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(46, 52, 47, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #2E342F; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(46, 52, 47, 0.8); }
HTML: <p style="color:#2E342F">Text here</p> · <div style="background-color:#2E342F">Div content here</div>
Shades of #2E342F
Tints of #2E342F
Tones of #2E342F
Color harmonies
Complementary — #332E32:
Analogous:
Triadic:
Contrast & accessibility
| Against white text | 12.74:1 AAA |
|---|---|
| Against black text | 1.65:1 Fails |
Best text color on #2E342F: #FFFFFF.
Semi-transparent (opacity) text on #2E342F
Text set with opacity blends into the background, so its real contrast is lower than the solid ratios above. Choose a text color and an opacity to see the blended color and its true ratio:
Smaller body text shows the effect best.
Blended color: · Contrast against #2E342F: ·
How #2E342F looks with color blindness
Simulated with standard Machado color-vision-deficiency matrices — useful when this color carries meaning in charts, maps or interfaces:
Closest design-system colors
The nearest matches in the Tailwind CSS, Material Design and Bootstrap palettes — handy when you need a framework class instead of a raw hex:
Palettes with a similar color
These palettes use a close neighbour of #2E342F rather than the exact color:
Similar colors
The closest colors that actually appear in our palette collection — click any to open its page:
Browse neighbouring colors
Frequently asked questions
What color is #2E342F?
#2E342F is Charcoal, a gray color (RGB 46, 52, 47). Its closest standard named color is DarkSlateGray.
What is the RGB and HSL of #2E342F?
#2E342F is RGB 46, 52, 47 — HSL 130°, 6%, 19% — CMYK 12%, 0%, 10%, 80%.
What colors go with #2E342F?
Its complement is #332E32; analogous partners are #2F332E and #2E3331. It also appears in 6+ palettes in our collection.
Can I use #2E342F for text?
White text on #2E342F has a contrast ratio of 12.74:1 (passes WCAG AA); black text gives 1.65:1.