Skip to content

Dark Slate Gray (#2F4F4F)

The hex code for Dark Slate Gray is #2F4F4F. It is rgb(47, 79, 79) in RGB, hsl(180, 25%, 25%) in HSL, and about cmyk(41%, 0%, 0%, 69%) in CMYK — a dark teal. White text is the more readable choice on this background.

#2F4F4F
HEX#2F4F4F
RGBrgb(47, 79, 79)
HSLhsl(180, 25%, 25%)
HSVhsv(180, 41%, 31%)
CMYKcmyk(41%, 0%, 0%, 69%)
OKLCHoklch(40.3% 0.038 195.8)
LABlab(31.14% -12.26 -3.94)
LCHlch(31.14% 12.88 197.80)

Colors Closest to Dark Slate Gray

Dark Slate Gray is a registered color name. These are the named colors nearest to it, measured as CIE76 distance in CIELAB — a perceptual scale, so the ordering matches what the eye sees rather than how close the raw RGB numbers happen to sit.

Browse the full index of named colors A-Z or every teal in the library.

#2F4F4F Channel Values

How Dark Slate Gray breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 47 · G 79 · B 798-bit channels as sent to the display
HSLH 180° · S 25% · L 25%Easiest model for building lighter and darker variants
HSVH 180° · S 41% · V 31%Matches the picker in most design tools
CMYKC 41% · M 0% · Y 0% · K 69%Approximate ink mix; confirm with an ICC profile before printing
Luminance8.93:1 vs white · 2.35:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a Dark Slate Gray background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

TextWhite text8.93:1AA normal AA large AAA normal
Fails AABlack text2.35:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #2F4F4F in the contrast checker.

Colors That Go With Dark Slate Gray

Pairings derived from color-wheel relationships. The complementary color sits opposite Dark Slate Gray; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of Dark Slate Gray

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #2F4F4F.

How Dark Slate Gray Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#2F4F4F
Protanopia#4B4B4F
Protanomaly#414C4F
Deuteranopia#464650
Deuteranomaly#3E4A4F
Tritanopia#2F4F4F
Tritanomaly#2F4F4F
Achromatopsia#4A4A4A

Test a full palette in the color blindness simulator.

Using #2F4F4F in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--dark-slate-gray: #2F4F4F;
CSS backgroundbackground-color: #2F4F4F;
Tailwind configcolors: { 'dark-slate-gray': '#2F4F4F' }
SwiftUIColor(red: 0.184, green: 0.310, blue: 0.310)
Android XML<color name="dark_slate_gray">#2F4F4F</color>
SVG fillfill="#2F4F4F"

More Teal Colors

Dark Slate Gray sits in the teal family. These are its neighbours across that family's full range, each with its own breakdown.

#2F4F4F Frequently Asked Questions

What is the hex code for Dark Slate Gray?

The hex code for Dark Slate Gray is #2F4F4F. That is rgb(47, 79, 79) in RGB, hsl(180, 25%, 25%) in HSL, and approximately cmyk(41%, 0%, 0%, 69%) in CMYK.

What is the RGB value of #2F4F4F?

#2F4F4F is rgb(47, 79, 79) — red 47, green 79, and blue 79 on the 0-255 scale.

What is the CMYK value of #2F4F4F?

#2F4F4F converts to approximately cmyk(41%, 0%, 0%, 69%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #2F4F4F be black or white?

White text is the more readable choice. #2F4F4F scores 8.93:1 against white and 2.35:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Is DarkSlateGray a CSS named color?

Yes. DarkSlateGray is one of the CSS named colors, so you can write color: darkslategray instead of the hex code.

Open Dark Slate Gray in a Tool

Keep exploring: every teal in the color library, the guide to shades of teal, or the full color library.