Tailwind CSS v4 default palette
Tailwind slate-50: #F8FAFC
In Tailwind CSS v4, slate-50 is defined as --color-slate-50: oklch(98.4% 0.003 247.858), which is #F8FAFC in hex and rgb(248, 250, 252): a neutral near-white. In Tailwind v3, slate-50 was #F8FAFC.
In OKLCH, slate-50 has a lightness of 98.4%, chroma 0.003 and hue 247.9°.
The value fits inside sRGB, so the hex #F8FAFC represents it without loss on any screen.
In v3, slate-50 was #F8FAFC. The v4 value is ΔE OK 0.0 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-50
| Tailwind v4 token | --color-slate-50 |
|---|---|
| OKLCH (source value) | oklch(98.4% 0.003 247.858) |
| HEX | #F8FAFC |
| RGB | rgb(248, 250, 252) |
| HSL | hsl(210, 40%, 98%) |
| HWB | hwb(210 97% 1%) |
| CMYK (naive, no ICC profile) | cmyk(2%, 1%, 0%, 1%) |
| Decimal | 16,317,180 |
| Tailwind v3 hex | #F8FAFC |
| Utility classes | bg-slate-50, text-slate-50, border-slate-50 |
Tailwind slate scale
Contrast and accessibility
On slate-50, black text has a contrast ratio of 20.07:1 and passes AAA at any text size; white text reaches 1.04: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-50 | 20.07:1 | Pass | Pass | Pass | Pass | 102.9 |
| White text on slate-50 | 1.04:1 | Fail | Fail | Fail | Fail | 0.0 |
| Slate-50 text on white | 1.04:1 | Fail | Fail | Fail | Fail | 0.0 |
| Slate-50 text on black | 20.07:1 | Pass | Pass | Pass | Pass | −104.4 |
Tints and shades
Each step mixes var(--color-slate-50) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-slate-50), white 25%) in CSS.
Tints (mixed with white)
- 5%
#f8fafc - 15%
#f9fbfc - 25%
#fafbfd - 35%
#fafcfd - 45%
#fbfcfd - 55%
#fcfdfe - 65%
#fdfdfe - 75%
#fdfefe - 85%
#fefeff - 95%
#ffffff
Shades (mixed with black)
- 5%
#eceeef - 15%
#d3d5d6 - 25%
#babcbd - 35%
#a1a3a4 - 45%
#888a8b - 55%
#707071 - 65%
#575858 - 75%
#3e3f3f - 85%
#252626 - 95%
#0c0d0d
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, slate-50's complementary color is #FBF9F8 (close to snow), its analogous colors are #F8FAFB and #F9FAFC, and its triadic partners are #FCF9F9 and #F9FAF8. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #fbf9f8 |
| Analogous | −30°, +30° | #f8fafb#f9fafc |
| Triadic | +120°, +240° | #fcf9f9#f9faf8 |
| Split-complementary | +150°, +210° | #fcf9f8#fafaf7 |
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-50 is close to neutral: its OKLCH chroma is only 0.003, so its temperature comes from context. It has no perceptible hue.
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 |
|---|---|---|
| ghostwhite | #f8f8ff | 0.8 |
| snow | #fffafa | 0.9 |
| aliceblue | #f0f8ff | 1.3 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| gray-50 | #f9fafb | 0.1 |
| zinc-50 | #fafafa | 0.3 |
| neutral-50 | #fafafa | 0.3 |
Code snippets
<div class="bg-slate-50 text-black">...</div>
<p class="text-slate-50 border-slate-50">...</p>.element {
color: var(--color-slate-50);
background-color: oklch(98.4% 0.003 247.858);
border-color: #f8fafc;
outline-color: rgb(248 250 252);
}import SwiftUI
extension Color {
static let slate50 = Color(red: 0.973, green: 0.980, blue: 0.988)
}import androidx.compose.ui.graphics.Color
val Slate50 = Color(0xFFF8FAFC)import 'package:flutter/material.dart';
const slate50 = Color(0xFFF8FAFC);<!-- res/values/colors.xml -->
<color name="slate_50">#F8FAFC</color>Frequently asked questions
- What is the hex code for Tailwind slate-50?
- In Tailwind CSS v4, slate-50 is oklch(98.4% 0.003 247.858), which converts to #F8FAFC (rgb(248, 250, 252)) in sRGB. In Tailwind v3 the same name was #F8FAFC.
- What is the difference between slate-50 in Tailwind v3 and v4?
- v3 used the hex #F8FAFC; v4 redefined the palette in OKLCH as oklch(98.4% 0.003 247.858). In v3, slate-50 was #F8FAFC. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
- How do I use slate-50 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-slate-50). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on slate-50?
- White text on slate-50 has a contrast ratio of 1.04:1, which fails AA even for large text under WCAG 2.2. Black text reaches 20.07:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 102.9 for black.
- Which CSS named color is closest to slate-50?
- The closest is ghostwhite (#F8F8FF) at ΔE OK 0.8, followed by snow and aliceblue.
Last reviewed by Arielton Oberek.