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.
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
| Tailwind v4 token | --color-slate-800 |
|---|---|
| OKLCH (source value) | oklch(27.9% 0.041 260.031) |
| HEX | #1D293D |
| RGB | rgb(29, 41, 61) |
| HSL | hsl(218, 36%, 18%) |
| HWB | hwb(218 11% 76%) |
| CMYK (naive, no ICC profile) | cmyk(52%, 33%, 0%, 76%) |
| Decimal | 1,911,101 |
| Tailwind v3 hex | #1E293B |
| Utility classes | bg-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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on slate-800 | 1.43:1 | Fail | Fail | Fail | Fail | 0.0 |
| White text on slate-800 | 14.61:1 | Pass | Pass | Pass | Pass | −104.3 |
| Slate-800 text on white | 14.61:1 | Pass | Pass | Pass | Pass | 101.4 |
| Slate-800 text on black | 1.43:1 | Fail | Fail | Fail | Fail | 0.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)
- 5%
#283447 - 15%
#3f495a - 25%
#565f6e - 35%
#6c7481 - 45%
#838994 - 55%
#999fa8 - 65%
#b0b4bb - 75%
#c7cacf - 85%
#dddfe2 - 95%
#f4f4f5
Shades (mixed with black)
- 5%
#1c273a - 15%
#192334 - 25%
#161f2e - 35%
#131b28 - 45%
#101722 - 55%
#0d121b - 65%
#0a0e15 - 75%
#070a0f - 85%
#040609 - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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
| Color | HEX | ΔE OK |
|---|---|---|
| midnightblue | #191970 | 10.4 |
| darkslategray | #2f4f4f | 13.1 |
| navy | #000080 | 14.7 |
Code snippets
<div class="bg-slate-800 text-white">...</div>
<p class="text-slate-800 border-slate-800">...</p>.element {
color: var(--color-slate-800);
background-color: oklch(27.9% 0.041 260.031);
border-color: #1d293d;
outline-color: rgb(29 41 61);
}import SwiftUI
extension Color {
static let slate800 = Color(red: 0.114, green: 0.161, blue: 0.239)
}import androidx.compose.ui.graphics.Color
val Slate800 = Color(0xFF1D293D)import 'package:flutter/material.dart';
const slate800 = Color(0xFF1D293D);<!-- 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.