Skip to content

Dark slate gray (Grey)

Dark slate gray is a gray with a hint of cyan. Hex code #2F4F4F.

Dark slate gray#2F4F4F

Dark slate gray color codes

  • CSS namedarkslategray, darkslategrey
  • HEX#2F4F4F
  • RGBrgb(47, 79, 79)
  • HSLhsl(180, 25%, 25%)
  • OKLCHoklch(40.3% 0.038 195.8)
HSB and CMYK values
  • HSB / HSVhsb(180, 41%, 31%)
  • CMYKC41 M0 Y0 K69

White text

8.92:1 · passes WCAG AAA

Black text

2.35:1 · fails WCAG

Shades of dark slate gray

A darker shade of dark slate gray is #062727 (800), and a lighter one is #4E6F6F (500).

Colors that go with dark slate gray

Complementary

Analogous

Triadic

The complementary color of dark slate gray is #4F2F2F.

Click a color to copy its hex code.

Colors similar to dark slate gray

Each compared with dark slate gray.

About this color

Dark slate gray in CSS and design

Dark slate gray is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same dark slate gray:

color: darkslategray;
color: #2F4F4F;
color: rgb(47, 79, 79);
color: hsl(180, 25%, 25%);

Dark slate gray and the other grays

Dark slate gray sits between black (#000000) and dim gray (#696969) in lightness. As text on dark slate gray, every gray from silver up reaches the 4.5:1 contrast that WCAG AA asks for.

GrayHexLightnessContrast with dark slate gray
Black#0000000%2.35:1
Dark slate gray#2F4F4F40%–
Dim gray#69696952%1.62:1
Slate gray#70809059%2.20:1
Gray#80808060%2.26:1
Light slate gray#77889962%2.45:1
Dark gray#A9A9A973%3.79:1
Silver#C0C0C081%4.90:1
Light gray#D3D3D387%5.96:1
Gainsboro#DCDCDC89%6.51:1
White smoke#F5F5F597%8.18:1
White#FFFFFF100%8.92:1

Lightness is OKLCH lightness, which follows how light a color looks.

Frequently asked questions

What is the hex code for dark slate gray (grey)?

#2F4F4F. Dark slate gray and dark slate grey are two spellings for the same color, and CSS accepts both keywords, darkslategray and darkslategrey, in every browser.

What is dark slate gray in RGB and HSL?

In RGB it is rgb(47, 79, 79) and in HSL hsl(180, 25%, 25%). In CMYK it is about C41 M0 Y0 K69, though printed colors vary with paper and ink.

Should I use black or white text on dark slate gray?

White text works better: it has a contrast ratio of 8.92:1 and passes WCAG AAA. Black text reaches 2.35:1.

What is the complementary color of dark slate gray?

#4F2F2F. It sits opposite dark slate gray on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.

Which colors go with dark slate gray?

For strong contrast, pair it with its complementary color #4F2F2F. For a calmer look, combine it with its analogous neighbors #2F4F3F and #2F3F4F. The palette generator builds more combinations.