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.
| Format | Value | |
|---|---|---|
| HEX | #2F4F4F | |
| RGB | rgb(47, 79, 79) | |
| HSL | hsl(180, 25%, 25%) | |
| CMYK | 41%, 0%, 0%, 69% | |
| CSS name | darkslategray |
.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.
Tints and shades of dark slate gray
Tints mix the color with white; shades mix it with black.
Dark Slate Gray
Contrast and readability
2.35:1
fails
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.