Skip to content

Tailwind CSS v4 default palette

Tailwind slate-800: #1D293D

In Tailwind CSS v4, slate-800 is defined as --color-slate-800: oklch(27.9% 0.041 260.031), which is #1D293D in hex and rgb(29, 41, 61): a very dark, muted blue. In Tailwind v3, slate-800 was #1E293B.

slate-800#1D293D

In OKLCH, slate-800 has a lightness of 27.9%, chroma 0.041 and hue 260.0°.

The value fits inside sRGB, so the hex #1D293D represents it without loss on any screen.

In v3, slate-800 was #1E293B. The v4 value is ΔE OK 0.4 away, below the point where most people can tell them apart.

Tailwind slate is the bluest of the gray scales, a cool gray that pairs well with blue and indigo accents.

Color codes for slate-800

Color codes for slate-800
Tailwind v4 token--color-slate-800
OKLCH (source value)oklch(27.9% 0.041 260.031)
HEX#1D293D
RGBrgb(29, 41, 61)
HSLhsl(218, 36%, 18%)
HWBhwb(218 11% 76%)
CMYK (naive, no ICC profile)cmyk(52%, 33%, 0%, 76%)
Decimal1,911,101
Tailwind v3 hex#1E293B
Utility classesbg-slate-800, text-slate-800, border-slate-800

Tailwind slate scale

Contrast and accessibility

On slate-800, white text has a contrast ratio of 14.61:1 and passes AAA at any text size; black text reaches 1.43: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 slate-8001.43:1FailFailFailFail0.0
White text on slate-80014.61:1PassPassPassPass−104.3
Slate-800 text on white14.61:1PassPassPassPass101.4
Slate-800 text on black1.43:1FailFailFailFail0.0

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #283447
  2. 15%
    #3f495a
  3. 25%
    #565f6e
  4. 35%
    #6c7481
  5. 45%
    #838994
  6. 55%
    #999fa8
  7. 65%
    #b0b4bb
  8. 75%
    #c7cacf
  9. 85%
    #dddfe2
  10. 95%
    #f4f4f5

Shades (mixed with black)

  1. 5%
    #1c273a
  2. 15%
    #192334
  3. 25%
    #161f2e
  4. 35%
    #131b28
  5. 45%
    #101722
  6. 55%
    #0d121b
  7. 65%
    #0a0e15
  8. 75%
    #070a0f
  9. 85%
    #040609
  10. 95%
    #010203

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, slate-800's complementary color is #33260F (close to darkslategray), its analogous colors are #102C39 and #28253B, and its triadic partners are #3A2020 and #1E2E1A. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#33260f
Analogous−30°, +30°#102c39#28253b
Triadic+120°, +240°#3a2020#1e2e1a
Split-complementary+150°, +210°#392216#2a2a11

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?

Tailwind slate-800 is a cool color: its hue is 218° 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
midnightblue#19197010.4
darkslategray#2f4f4f13.1
navy#00008014.7

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
gray-800#1e29390.8
sky-950#052f4a3.2
mist-800#22292b3.4

Code snippets

Tailwind CSS
<div class="bg-slate-800 text-white">...</div>
<p class="text-slate-800 border-slate-800">...</p>
CSS
.element {
  color: var(--color-slate-800);
  background-color: oklch(27.9% 0.041 260.031);
  border-color: #1d293d;
  outline-color: rgb(29 41 61);
}
SwiftUI
import SwiftUI

extension Color {
  static let slate800 = Color(red: 0.114, green: 0.161, blue: 0.239)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const slate800 = Color(0xFF1D293D);
Android XML
<!-- res/values/colors.xml -->
<color name="slate_800">#1D293D</color>

Frequently asked questions

What is the hex code for Tailwind slate-800?
In Tailwind CSS v4, slate-800 is oklch(27.9% 0.041 260.031), which converts to #1D293D (rgb(29, 41, 61)) in sRGB. In Tailwind v3 the same name was #1E293B.
What is the difference between slate-800 in Tailwind v3 and v4?
v3 used the hex #1E293B; v4 redefined the palette in OKLCH as oklch(27.9% 0.041 260.031). In v3, slate-800 was #1E293B. The v4 value is ΔE OK 0.4 away, below the point where most people can tell them apart.
How do I use slate-800 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-slate-800). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on slate-800?
White text on slate-800 has a contrast ratio of 14.61:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.43:1 and fails AA even for large text. In APCA terms that is Lc −104.3 for white and Lc 0.0 for black.
Which CSS named color is closest to slate-800?
The closest is midnightblue (#191970) at ΔE OK 10.4, followed by darkslategray and navy.

Last reviewed by Arielton Oberek.