Skip to content

Dark slate gray

Dark slate gray is a dark, soft color from the cyan family. Hex code #2F4F4F.

Dark slate gray#2F4F4F

Color codes

  • CSS namedarkslategray, darkslategrey
  • HEX#2F4F4F
  • RGBrgb(47 79 79)
  • HSLhsl(180 25% 25%)
  • HSB / HSVhsb(180, 41%, 31%)
  • OKLCHoklch(40.3% 0.038 195.8)
  • CMYKcmyk(41%, 0%, 0%, 69%)

White text

8.92:1 · passes WCAG AAA

Black text

2.35:1 · fails WCAG

Shades

50#D6FAFA
100#B9DDDD
200#9DC0C0
300#82A4A4
400#688989
500#4E6F6F
600#365656
700#1E3E3E
800#062727

Complementary

#2F4F4F
#5B4042

Analogous

#2F4F4F
#354F44
#324D58

Triadic

#2F4F4F
#514257
#544631

About this color

Dark slate gray in CSS and design

Dark slate gray is a dark, soft color from the cyan family. Dark slate gray is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.

Use it in CSS by name or by any of its codes; these all give the same color:

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

For text on dark slate gray, white reads best. Check other combinations with the contrast checker, or browse all CSS color names.

Frequently asked questions

What is the hex code for dark slate gray?

#2F4F4F. In CSS you can also use the keyword darkslategray or darkslategrey, which works in every browser.

What is dark slate gray in RGB and HSL?

In RGB it is rgb(47 79 79), in HSL hsl(180 25% 25%). For print, cmyk(41%, 0%, 0%, 69%) is a starting point, but CMYK depends on paper and ink, so check with your printer.

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.

Which colors go with dark slate gray?

Its complementary color is #5B4042, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #354F44 and #324D58. The palette generator builds more combinations.