Dark Slate Gray color (#2F4F4F)
Dark Slate Gray is one of the 148 CSS named colors. Use the keyword darkslategray
anywhere CSS accepts a color, or its hex code #2F4F4F, which is rgb(47, 79, 79) in RGB. The keyword darkslategrey produces exactly the same color.
It is a dark, muted color with a hue angle of 180° on the HSL color wheel and a perceived lightness of 40% in OKLCH. On a dark slate gray background, white text gives the higher contrast at 8.92:1, which passes WCAG AA for normal text.
Dark Slate Gray color codes
| CSS name | darkslategray |
|
|---|---|---|
| HEX | #2F4F4F |
|
| HEX (8-digit) | #2F4F4FFF |
|
| RGB | rgb(47, 79, 79) |
|
| HSL | hsl(180, 25%, 25%) |
|
| HSV / HSB | hsv(180, 41%, 31%) |
|
| OKLCH | oklch(40.3% 0.0377 195.8) |
|
| CMYK | cmyk(40.5%, 0%, 0%, 69%) |
Contrast with white and black
WCAG 2 contrast ratios and APCA lightness contrast (Lc) for dark slate gray used as text and as a background.
Tints and shades of dark slate gray
Tints mix dark slate gray with white; shades mix it with black, in 10% steps. Click a swatch to copy it, or build custom scales in the tint & shade generator.
Tints
Shades
Colors that go with dark slate gray
Harmonies calculated on the HSL color wheel. Explore more in the color scheme generator.
Complementary
Analogous
Triadic
Split-Complementary
Dark Slate Gray with color blindness
Approximately how dark slate gray appears with each type of color vision deficiency. Test full designs with the color blindness simulator.
Using dark slate gray in CSS
.element {
color: darkslategray;
background-color: #2f4f4f;
border-color: rgb(47 79 79 / 50%);
outline-color: oklch(40.3% 0.0377 195.8);
}Similar named colors
See all shades of gray or browse every CSS color name.