Slate gray (Grey)
Slate gray is a medium gray with a hint of blue. Hex code #708090.
Slate gray color codes
- CSS name
slategray, slategrey - HEX
#708090 - RGB
rgb(112, 128, 144) - HSL
hsl(210, 13%, 50%) - OKLCH
oklch(59.3% 0.031 248.3)
HSB and CMYK values
- HSB / HSV
hsb(210, 22%, 56%) - CMYK
C22 M11 Y0 K44
White text
4.05:1 · passes WCAG AA for large text only
Black text
5.17:1 · passes WCAG AA
Shades of slate gray
A darker shade of slate gray is #425160 (600), and a lighter one is #8E9FAF (300).
Colors that go with slate gray
Complementary
Analogous
Triadic
The complementary color of slate gray is #908070, close to gray.
Click a color to copy its hex code.
Colors similar to slate gray
- Light slate gray#778899
Slightly lighter
- Gray#808080
No tint
- Steel blue#4682B4
More vivid
- Dim gray#696969
Darker, no tint
- Cadet blue#5F9EA0
Lighter, more cyan, more vivid
- Dark cyan#008B8B
Slightly darker, more cyan, more vivid
Each compared with slate gray.
About this color
Slate gray in CSS and design
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 slate gray:
color: slategray;
color: #708090;
color: rgb(112, 128, 144);
color: hsl(210, 13%, 50%);What to know about slate gray
Slate gray is named after slate, the gray rock of roofing tiles, and Merriam-Webster defines it as a bluish gray. Its hex code climbs in even steps from red to blue, 70, 80, 90, which is where its hint of blue comes from; light slate gray (#778899) climbs the same way, 77, 88, 99. As text on white, slate gray reaches 4.05:1, short of the 4.5:1 of WCAG AA.
Slate gray and the other grays
Slate gray sits between dim gray (#696969) and gray (#808080) in lightness. As text on slate gray, black reaches the 4.5:1 contrast that WCAG AA asks for.
| Gray | Hex | Lightness | Contrast with slate gray |
|---|---|---|---|
| Black | #000000 | 0% | 5.17:1 |
| Dark slate gray | #2F4F4F | 40% | 2.20:1 |
| Dim gray | #696969 | 52% | 1.35:1 |
| Slate gray | #708090 | 59% | – |
| Gray | #808080 | 60% | 1.02:1 |
| Light slate gray | #778899 | 62% | 1.11:1 |
| Dark gray | #A9A9A9 | 73% | 1.72:1 |
| Silver | #C0C0C0 | 81% | 2.22:1 |
| Light gray | #D3D3D3 | 87% | 2.70:1 |
| Gainsboro | #DCDCDC | 89% | 2.95:1 |
| White smoke | #F5F5F5 | 97% | 3.71:1 |
| White | #FFFFFF | 100% | 4.05:1 |
Lightness is OKLCH lightness, which follows how light a color looks.
Frequently asked questions
What is the hex code for slate gray (grey)?
#708090. Slate gray and slate grey are two spellings for the same color, and CSS accepts both keywords, slategray and slategrey, in every browser.
What is slate gray in RGB and HSL?
In RGB it is rgb(112, 128, 144) and in HSL hsl(210, 13%, 50%). In CMYK it is about C22 M11 Y0 K44, though printed colors vary with paper and ink.
Should I use black or white text on slate gray?
Black text works better: it has a contrast ratio of 5.17:1 and passes WCAG AA. White text reaches 4.05:1.
What is the complementary color of slate gray?
#908070, close to gray. It sits opposite slate gray on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.
Which colors go with slate gray?
For strong contrast, pair it with its complementary color #908070. For a calmer look, combine it with its analogous neighbors #709090 and #707090. The palette generator builds more combinations.