Dark slate gray (Grey)
Dark slate gray is a gray with a hint of cyan. Hex code #2F4F4F.
Dark slate gray color codes
- CSS name
darkslategray, darkslategrey - HEX
#2F4F4F - RGB
rgb(47, 79, 79) - HSL
hsl(180, 25%, 25%) - OKLCH
oklch(40.3% 0.038 195.8)
HSB and CMYK values
- HSB / HSV
hsb(180, 41%, 31%) - CMYK
C41 M0 Y0 K69
White text
8.92:1 · passes WCAG AAA
Black text
2.35:1 · fails WCAG
Shades of dark slate gray
A darker shade of dark slate gray is #062727 (800), and a lighter one is #4E6F6F (500).
Colors that go with dark slate gray
Complementary
Analogous
Triadic
The complementary color of dark slate gray is #4F2F2F.
Click a color to copy its hex code.
Colors similar to dark slate gray
- Dim gray#696969
Lighter, no tint
- Dark olive green#556B2F
Lighter, more green, more vivid
- Dark slate blue#483D8B
More blue, more vivid
- Dark green#006400
Slightly lighter, more green, much more vivid
- Teal#008080
Lighter, more vivid
- Saddle brown#8B4513
Lighter, more orange, more vivid
Each compared with dark slate gray.
About this color
Dark slate gray in CSS and design
Dark slate gray is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same dark slate gray:
color: darkslategray;
color: #2F4F4F;
color: rgb(47, 79, 79);
color: hsl(180, 25%, 25%);Dark slate gray and the other grays
Dark slate gray sits between black (#000000) and dim gray (#696969) in lightness. As text on dark slate gray, every gray from silver up reaches the 4.5:1 contrast that WCAG AA asks for.
| Gray | Hex | Lightness | Contrast with dark slate gray |
|---|---|---|---|
| Black | #000000 | 0% | 2.35:1 |
| Dark slate gray | #2F4F4F | 40% | – |
| Dim gray | #696969 | 52% | 1.62:1 |
| Slate gray | #708090 | 59% | 2.20:1 |
| Gray | #808080 | 60% | 2.26:1 |
| Light slate gray | #778899 | 62% | 2.45:1 |
| Dark gray | #A9A9A9 | 73% | 3.79:1 |
| Silver | #C0C0C0 | 81% | 4.90:1 |
| Light gray | #D3D3D3 | 87% | 5.96:1 |
| Gainsboro | #DCDCDC | 89% | 6.51:1 |
| White smoke | #F5F5F5 | 97% | 8.18:1 |
| White | #FFFFFF | 100% | 8.92:1 |
Lightness is OKLCH lightness, which follows how light a color looks.
Frequently asked questions
What is the hex code for dark slate gray (grey)?
#2F4F4F. Dark slate gray and dark slate grey are two spellings for the same color, and CSS accepts both keywords, darkslategray and darkslategrey, in every browser.
What is dark slate gray in RGB and HSL?
In RGB it is rgb(47, 79, 79) and in HSL hsl(180, 25%, 25%). In CMYK it is about C41 M0 Y0 K69, though printed colors vary with paper and ink.
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.
What is the complementary color of dark slate gray?
#4F2F2F. It sits opposite dark slate gray on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.
Which colors go with dark slate gray?
For strong contrast, pair it with its complementary color #4F2F2F. For a calmer look, combine it with its analogous neighbors #2F4F3F and #2F3F4F. The palette generator builds more combinations.