Dark Slate Gray Color

HEX #2F4F4F · rgb(47, 79, 79) · hsl(180, 25%, 25%)

Dark Slate Gray color codes

Dark Slate Gray is one of the named colors every browser understands. In CSS you can write it as darkslategray or #2F4F4F. The spelling "darkslategrey" is an exact synonym.

FormatValue
HEX#2F4F4F
RGBrgb(47, 79, 79)
HSLhsl(180, 25%, 25%)
CMYK41%, 0%, 0%, 69%
CSS namedarkslategray
.example {
  color: darkslategray;
  background-color: #2F4F4F;
  border-color: rgb(47, 79, 79);
}

Colors that go with dark slate gray

These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.

#4F2F2FComplementary
#2F4F3FAnalogous
#2F3F4FAnalogous
#4F2F4FTriadic
#4F4F2FTriadic

Tints and shades of dark slate gray

Tints mix the color with white; shades mix it with black.

#EAEDED90% white
#CBD3D375% white
#ACB9B960% white
#8D9E9E45% white
#6D848430% white
#4E696915% white
#2F4F4FBase
Dark Slate Gray
#28434315% black
#21373730% black
#1A2B2B45% black
#13202060% black
#0C141475% black
#05080890% black

Contrast and readability

Black text
2.35:1
fails
White text
8.93:1
passes AA and AAA

Use white text on dark slate gray. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.

Frequently asked questions

What is the hex code for dark slate gray?

The hex code for dark slate gray is #2F4F4F.

What is the RGB value of dark slate gray?

Dark Slate Gray is rgb(47, 79, 79): 47 red, 79 green and 79 blue on a 0 to 255 scale.

What color goes with dark slate gray?

Its complementary color is #4F2F2F, which is closest to the named color dark slate gray. Analogous and triadic matches are listed on this page.

Should text on dark slate gray be black or white?

Use white text. The contrast ratio is 2.35:1 with black and 8.93:1 with white. WCAG AA asks for at least 4.5:1 for normal text.

Similar named colors

Pick any other color with the color picker, or browse all named colors.