CSS named color

SlateGray #708090

slategray rgb(112, 128, 144)

SlateGray is a muted azure with the hex code #708090, which converts to rgb(112, 128, 144). The British spelling slategrey is an alias and renders exactly the same color. Open #708090 in the converter to tweak it.

SlateGray color values

HEX#708090
HEX (shorthand)—
RGBrgb(112, 128, 144)
RGBArgba(112, 128, 144, 1)
8-digit HEX#708090FF
HSLhsl(210, 13%, 50%)
HSV / HSB210°, 22%, 56%
CMYK22%, 11%, 0%, 44%
RGB 0–10.439, 0.502, 0.565
Decimal7372944
CSS keywordslategray

How #708090 converts to RGB

Split the hex code into three pairs and read each pair as a base-16 number: 70 → 112, 80 → 128, 90 → 144. That gives rgb(112, 128, 144). The step-by-step guide explains the math.

Shades of SlateGray

Mixed toward black in 10% steps. Click a swatch to copy its hex.

Tints of SlateGray

Mixed toward white in 10% steps.

Color harmonies

Hue rotations of SlateGray on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.

Complementary

Analogous

Split-complementary

Triadic

Tetradic (square)

Contrast and accessibility

TextBackgroundRatioWCAG 2.x
White SlateGray 4.05:1AA Large only
Black SlateGray 5.17:1AA

Use black text on a slategray background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.

Use SlateGray in CSS

.element {
  color: slategray;                         /* keyword */
  background-color: #708090;            /* hex */
  border-color: rgb(112 128 144 / 50%);    /* 50% transparent */
}

Need it semi-transparent? Append an alpha byte: #70809080 is SlateGray at 50% opacity. See RGBA & transparency.

Similar named colors

FAQ

What is the HEX code for SlateGray?

The CSS named color slategray is #708090 in hexadecimal. In CSS you can write color: slategray; or color: #708090; — both produce the same pixel.

What is SlateGray in RGB?

SlateGray is rgb(112, 128, 144): red 112, green 128, blue 144 on the 0–255 scale. As normalized 0–1 floats that is (0.439, 0.502, 0.565).

Is white or black text more readable on SlateGray?

Black text is more readable. White on #708090 has a contrast ratio of 4.05:1 (AA Large only), black on #708090 has 5.17:1 (AA). WCAG AA needs 4.5:1 for normal text.

Copied!