DarkSlateGray color

Inspect DarkSlateGray (#2F4F4F) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.

#2f4f4f

DarkSlateGray

DarkSlateGray color values

DarkSlateGray

#2F4F4F

White text reads best on this background, at 8.93:1.

DarkSlateGray is one of the 148 CSS named colors, and resolves to #2F4F4F in every browser. In numbers that is rgb(47, 79, 79) and hsl(180, 25%, 25%). Perceptually it is a dark, near-neutral color: OKLCH puts its lightness at 40% and its chroma at 0.038. It sits in the cyans at 196 degrees of OKLCH hue, and reads as a neutral color.

White text clears WCAG AA on a DarkSlateGray background at 8.93:1, and AAA as well. With this little chroma it recedes, which makes it useful for borders, dividers and secondary surfaces.

The closest CSS named colors to DarkSlateGray, measured with CIEDE2000, are DimGray (#696969), DimGrey (#696969), Teal (#008080). If DarkSlateGray is not quite right, those are the nearest keywords to try before reaching for a custom value.

HEX

#2F4F4F

RGB

rgb(47, 79, 79)

HSL

hsl(180, 25%, 25%)

HWB

hwb(180 18% 69%)

CMYK

cmyk(41%, 0%, 0%, 69%)

LAB

lab(31.14 -12.26 -3.94)

LCH

lch(31.14 12.88 197.8)

OKLCH

oklch(40.3% 0.0377 195.76)

Is DarkSlateGray accessible?

WCAG asks for 4.5:1 between body text and its background. On #2F4F4F white text measures 8.93:1 and black text 2.35:1, so white clears it and black does not.

White text on DarkSlateGray

WCAG 2.2

8.93:1

APCA

Lc 94

Passes AA body text

Passes AAA body text

Passes AA large text

Black text on DarkSlateGray

WCAG 2.2

2.35:1

APCA

Lc 13

Fails AA body text

Fails AAA body text

Fails AA large text

Check DarkSlateGray against any other color in the contrast checker.

Tints and shades of DarkSlateGray

DarkSlateGray sits at 40% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #E3FFFF and down to #000808, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.

Tints, toward white

#4F706F

20% lighter

#709292

40% lighter

#93B6B5

60% lighter

#B7DBDA

80% lighter

#E3FFFF

100% lighter

Shades, toward black

#204040

20% darker

#113131

40% darker

#022323

60% darker

#001515

80% darker

#000808

100% darker

Build a full accessible scale from #2F4F4F in the shade generator.

Colors that go with DarkSlateGray

Hues rotated around #2F4F4F in OKLCH, then pulled back into the sRGB gamut. Each swatch is labelled with the nearest CSS named color so you have a keyword to start from.

Complementary

DarkSlateGray sits at 196 degrees. Rotating it a half turn lands on 16 degrees, the hue directly opposite. It is the strongest pairing you can make without changing lightness, and the one most likely to vibrate if you use both at full chroma.

Analogous

The neighbors of DarkSlateGray at 166 and 226 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.

Triadic

196, 316 and 76 degrees divide the wheel into thirds. Balanced enough to carry a whole palette without one color dominating the other two.

Split complementary

Instead of the complement at 16 degrees, this pair flanks it at 346 and 46. You keep most of the contrast of a complementary pairing while losing the harshness.

Explore more combinations around DarkSlateGray on the color wheel.

How DarkSlateGray looks with color blindness

The biggest shift is under deuteranopia, where #2F4F4F reads as #43464F, 14 CIEDE2000 units away. If DarkSlateGray is the only thing marking a state or a series, roughly one viewer in twelve will miss it.

Protanopia

#4A4B4F

Deuteranopia

#43464F

Tritanopia

#27524F

Achromatopsia

#484848

Colors similar to DarkSlateGray

The nearest CSS keywords to #2F4F4F, ranked by perceptual distance rather than by how close their hex digits happen to look.