Skip to content

CSS named color

SlateGrey #708090

SlateGrey (CSS keyword slategrey) has the hex code #708090 and the RGB value rgb(112, 128, 144): a medium, grayish sky blue.

SlateGrey#708090

British spelling of slategray, same value (#708090). A cool gray that passes WCAG AA large-text contrast on white.

The keyword slategray has exactly the same value (#708090); browsers treat them as the same color.

Color codes for SlateGrey

Color codes for SlateGrey
CSS keywordslategrey
HEX#708090
RGBrgb(112, 128, 144)
HSLhsl(210, 13%, 50%)
HWBhwb(210 44% 44%)
OKLCHoklch(59.3% 0.031 248.3)
CMYK (naive, no ICC profile)cmyk(22%, 11%, 0%, 44%)
Decimal7,372,944
Hue familyGrays and black
Same value asslategray

Contrast and accessibility

On slategrey, black text has a contrast ratio of 5.17:1 and passes AA for normal text; white text reaches 4.05:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on slategrey5.17:1PassPassFailPass36.3
White text on slategrey4.05:1FailPassFailFail−73.3
Slategrey text on white4.05:1FailPassFailFail67.8
Slategrey text on black5.17:1PassPassFailPass−33.9

Tints and shades

Each step mixes slategrey with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, slategrey, white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #778696
  2. 15%
    #8593a1
  3. 25%
    #94a0ac
  4. 35%
    #a2acb7
  5. 45%
    #b0b9c2
  6. 55%
    #bfc6cd
  7. 65%
    #cdd3d8
  8. 75%
    #dbdfe3
  9. 85%
    #eaecee
  10. 95%
    #f8f9f9

Shades (mixed with black)

  1. 5%
    #6a7a89
  2. 15%
    #5f6d7a
  3. 25%
    #54606c
  4. 35%
    #49535e
  5. 45%
    #3e464f
  6. 55%
    #323a41
  7. 65%
    #272d32
  8. 75%
    #1c2024
  9. 85%
    #111316
  10. 95%
    #060607

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, slategrey's complementary color is #8B7B6B (close to gray), its analogous colors are #6A838A and #797D91, and its triadic partners are #8F777A and #78826E. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#8b7b6b
Analogous−30°, +30°#6a838a#797d91
Triadic+120°, +240°#8f777a#78826e
Split-complementary+150°, +210°#8f7871#837f6a

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

SlateGrey is a cool color: its hue is 210° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
lightslategray#7788992.7
gray#8080803.2
steelblue#4682b46.9

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
mist-500#67787c3.7
slate-500#62748e4.2
gray-500#6a72824.2

Code snippets

CSS
.element {
  color: slategrey;
  background-color: #708090;
  border-color: rgb(112 128 144);
  outline-color: oklch(59.3% 0.031 248.3);
}
Tailwind CSS
<div class="bg-[#708090] text-black">...</div>

/* or register it once in your CSS (Tailwind v4) */
@theme {
  --color-slategrey: #708090;
}
/* then use bg-slategrey, text-slategrey, border-slategrey */
SwiftUI
import SwiftUI

extension Color {
  static let slategrey = Color(red: 0.439, green: 0.502, blue: 0.565)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Slategrey = Color(0xFF708090)
Flutter
import 'package:flutter/material.dart';

const slategrey = Color(0xFF708090);
Android XML
<!-- res/values/colors.xml -->
<color name="slategrey">#708090</color>

Frequently asked questions

What is the hex code for slategrey?
The hex code for slategrey is #708090. The same color is rgb(112, 128, 144), hsl(210, 13%, 50%) and oklch(59.3% 0.031 248.3), and in CSS you can also write the keyword slategrey directly.
Is slategrey a warm or cool color?
SlateGrey is a cool color: its hue is 210° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.
What colors go with slategrey?
Rotating the hue in OKLCH while keeping lightness and chroma, slategrey's complementary color is #8B7B6B (close to gray), its analogous colors are #6A838A and #797D91, and its triadic partners are #8F777A and #78826E. For text on top, black gives the higher contrast.
Can you use white text on slategrey?
White text on slategrey has a contrast ratio of 4.05:1, which passes AA only for large text (24 px, or 18.66 px bold, and up) under WCAG 2.2. Black text reaches 5.17:1 and passes AA for normal text but not AAA. In APCA terms that is Lc −73.3 for white and Lc 36.3 for black.
Is slategrey the same as slategray?
Yes. Both keywords are #708090 (rgb(112, 128, 144)). CSS Color 4 keeps both for compatibility, so use whichever your codebase already uses.

Last reviewed by Arielton Oberek.