Toolman

slategray — #708090

#708090

rgb(112, 128, 144) · hsl(210, 13%, 50%) · CSS keyword slategray

Can you put text on it?

ContrastBody textLarge text
slategray on white4.05:1AA
slategray on black5.18:1AAAA

As a background, slategray takes black text: 5.18:1 against 4.05:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.

Using it

color: slategray;
color: #708090;
color: rgb(112 128 144);

All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.

slategrey is the same colour: CSS accepts both spellings and they are byte for byte identical, so color: slategray and color: slategrey render the same.

Colours close to slategray

Frequently asked questions

What is the hex code for slategray?

The hex code for slategray is #708090 — RGB 112, 128, 144.

Can I use slategray for text?

Only for large text. slategray reaches 4.05:1 against white — enough for the 3:1 of headings at 24px or 18.5px bold, short of the 4.5:1 body text needs.

Should text on slategray be black or white?

Black — 5.18:1 against 4.05:1 the other way.

Other named colours

#708090 in full — tints, shades and harmonies · All named colours · Colour reference