Skip to content
Color Codes

CSS named color

DarkSlateGray Color Code

DarkSlateGray is a dark, muted cyan with the hex code #2F4F4F. In RGB it is rgb(47, 79, 79), in HSL hsl(180, 25%, 25%) and in CMYK cmyk(41%, 0%, 0%, 69%).

DarkSlateGray
#2F4F4F

Color values

In CSS you can write it as the keyword darkslategray.

White text on DarkSlateGray has a contrast ratio of 8.93:1 and black text 2.35:1, so white text is the more readable choice.

The closest Tailwind CSS color is Teal 900 (#134E4A).

Use DarkSlateGray in CSS

.element {
  color: darkslategray;
  background-color: #2f4f4f;
  border-color: rgb(47, 79, 79);
}

Tints and shades of DarkSlateGray

Ten steps from light to dark at the same hue. Click any swatch to copy it.

Colors that go with DarkSlateGray

Color-wheel harmonies built from #2F4F4F. Click a swatch to copy it or open the set in the color wheel.

Complementary

Open in color wheel

Opposite hues for maximum contrast and energetic accents.

Neighboring hues for calm, cohesive surfaces.

Three evenly spaced hues for balanced, colorful systems.

Split complementary

Open in color wheel

A base plus the two neighbors of its complement — contrast with less tension.

Text contrast on DarkSlateGray

Aa
White text
8.93:1
AAA
Aa
Black text
2.35:1
Fail
Check in the contrast checker

Colors similar to DarkSlateGray

Palettes with similar colors

Questions about DarkSlateGray

What is the hex code for DarkSlateGray?

The hex code for DarkSlateGray is #2F4F4F. Its RGB value is rgb(47, 79, 79) and its HSL value is hsl(180, 25%, 25%).

What colors go with DarkSlateGray?

The complementary color of DarkSlateGray is #503030. For a softer scheme try the analogous colors #305040 and #304050; for a balanced three-color scheme use the triadic colors #503050 and #505030.

Is DarkSlateGray readable as a text color?

On a white background DarkSlateGray has a contrast ratio of 8.93:1, which passes WCAG AA for normal text (4.5:1). On black it reaches 2.35:1.

More gray colors