CSS named color

Slate Gray #708090

The CSS keyword slategray is #708090. It is a grayish blue in the neutral family. In OKLCH it sits at lightness 0.593, chroma 0.031 and hue 248.3°.

Relative luminance
0.2090
OKLCH L · C · h
0.593 · 0.031 · 248.3
Best text
Black 5.17:1
Hue family
Neutral

#708090 color codes

HEX
#708090
RGB
rgb(112, 128, 144)
HSL
hsl(210, 13%, 50%)
OKLCH
oklch(0.593 0.031 248.3)
OKLab
oklab(0.593 -0.011 -0.029)
CIELAB (D65)
L* 52.84, a* -2.14, b* -10.57
XYZ (D65)
X 19.43, Y 20.90, Z 29.39
CMYK (naive)
cmyk(22%, 11%, 0%, 44%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Legibility

Contrast: is #708090 accessible?

Black text on it reaches 5.17:1, passing AA. White text manages only 4.05:1, enough for large text only.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    5.17:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc +36
  • White text on it

    4.05:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc −73
  • As text on black

    5.17:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc −33
  • As text on white

    4.05:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc +67

Nearest versions that pass 4.5:1

  • For text on white

    #677787 4.59:1

    Darkening its OKLCH lightness from 0.59 to 0.56 reaches 4.59:1 on white, keeping the hue.

  • For text on black

    #708090 5.17:1

    It already reaches 5.17:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #708090 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #708090

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #708090 sits at step 500.

  1. 50#EEF6FF
    White
    1.09
    Black
    19.26
  2. 100#DEEDFC
    White
    1.19
    Black
    17.62
  3. 200#CADAE9
    White
    1.42
    Black
    14.71
  4. 300#B0C0D0
    White
    1.85
    Black
    11.29
  5. 400#93A4B4
    White
    2.55
    Black
    8.20
  6. 500This color#708090
    White
    4.05
    Black
    5.17
  7. 600#617180
    White
    5.02
    Black
    4.18
  8. 700#4B5A68
    White
    7.09
    Black
    2.96
  9. 800#34414E
    White
    10.43
    Black
    2.01
  10. 900#1F2A35
    White
    14.57
    Black
    1.44
  11. 950#0D1720
    White
    18.09
    Black
    1.16

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #708090 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.161; #708090 uses 19% of it. Display P3, which many recent phones and laptops show, reaches 0.208 there: 29% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.031
sRGB edge
0.161
Display P3 edge
0.208
Rec. 2020 edge
0.253
Dominant wavelength
480 nm
Excitation purity
15%
Chromaticity
x 0.2787, y 0.2997
  • This color#708090
  • Most vivid in sRGB#0082D8
  • Most vivid in Display P3oklch(0.593 0.208 248.3)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #708090;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0 0.4898 0.9158); }
}

Mixing

Mixing #708090

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#B8C0C8
  • OKLab50%#B5BEC6
  • OKLCH50%#B5BEC6

Black #000000

  • sRGB50%#384048
  • OKLab50%#272E34
  • OKLCH50%#272E34

Its complement #8B7B6B

  • sRGB50%#7E7E7E
  • OKLab50%#7E7E7E
  • OKLCH50%#8B7785
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #708090, white);
color: color-mix(in oklch, #708090 50%, white);

In use

#708090 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:15.17:1 Passes
  • Link and body-size textText, 4.5:14.05:1 Fails
  • Large headingLarge text, 3:14.05:1 Passes
  • Icons, borders and focus ringsNon-text, 3:14.05:1 Passes

For text on this page, the nearest shade that passes is #677787 4.59:1

Dark page

  • Button labelText, 4.5:15.17:1 Passes
  • Link and body-size textText, 4.5:14.62:1 Passes
  • Large headingLarge text, 3:14.62:1 Passes
  • Icons, borders and focus ringsNon-text, 3:14.62:1 Passes

Color vision

How #708090 looks with color blindness

Tritanopia changes it most, ΔE2000 10.2; protanopia changes it least, 4.9.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #7A8091 ΔE2000 4.9

    Close match

    Reads as grayish blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #767D90 ΔE2000 4.9

    Close match

    Reads as grayish blue

  • Tritanopia

    No working blue (short-wavelength) cones

    #678485 ΔE2000 10.2

    Distinct

    Reads as grayish cyan

  • Achromatopsia

    No cone color vision; lightness only

    #7E7E7E ΔE2000 8.8

    Noticeable

    Reads as gray

Pairing check

A near-neutral has no complementary hue to pair with, so tell it apart from neighboring grays by lightness contrast alone.

Harmony

Color harmonies for #708090

Its complement is #8B7B6B, a grayish orange.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#708090
  • Complement#8B7B6B

Complementary

Open in Harmony Studio
  • −30°#6A838A
  • Base#708090
  • +30°#797D91
  • Base#708090
  • +120°#8F777A
  • +240°#78826E
  • Base#708090
  • +150°#8F7871
  • +210°#837F6A

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-slategray: #708090;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        slategray: '#708090',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-slategray: oklch(0.593 0.031 248.3);
}

Design token (W3C DTCG)

{
  "color": {
    "slategray": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.4392, 0.502, 0.5647],
        "hex": "#708090"
      },
      "$description": "CSS named color slategray"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let slategray = Color(.sRGB, red: 0.439, green: 0.502, blue: 0.565, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Slategray = Color(0xFF708090)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #708090 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.