Tailwind CSS v4 default palette
Tailwind slate-700: #314158
In Tailwind CSS v4, slate-700 is defined as --color-slate-700: oklch(37.2% 0.044 257.287), which is #314158 in hex and rgb(49, 65, 88): a dark, muted blue. In Tailwind v3, slate-700 was #334155.
In OKLCH, slate-700 has a lightness of 37.2%, chroma 0.044 and hue 257.3°.
The value fits inside sRGB, so the hex #314158 represents it without loss on any screen.
In v3, slate-700 was #334155. The v4 value is ΔE OK 0.5 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-700
| Tailwind v4 token | --color-slate-700 |
|---|---|
| OKLCH (source value) | oklch(37.2% 0.044 257.287) |
| HEX | #314158 |
| RGB | rgb(49, 65, 88) |
| HSL | hsl(215, 28%, 27%) |
| HWB | hwb(215 19% 65%) |
| CMYK (naive, no ICC profile) | cmyk(44%, 26%, 0%, 65%) |
| Decimal | 3,227,992 |
| Tailwind v3 hex | #334155 |
| Utility classes | bg-slate-700, text-slate-700, border-slate-700 |
Tailwind slate scale
Contrast and accessibility
On slate-700, white text has a contrast ratio of 10.35:1 and passes AAA at any text size; black text reaches 2.02: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-700 | 2.02:1 | Fail | Fail | Fail | Fail | 9.9 |
| White text on slate-700 | 10.35:1 | Pass | Pass | Pass | Pass | −98.0 |
| Slate-700 text on white | 10.35:1 | Pass | Pass | Pass | Pass | 94.0 |
| Slate-700 text on black | 2.02:1 | Fail | Fail | Fail | Fail | −8.5 |
Tints and shades
Each step mixes var(--color-slate-700) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-slate-700), white 25%) in CSS.
Tints (mixed with white)
- 5%
#3b4b60 - 15%
#505e71 - 25%
#657182 - 35%
#798492 - 45%
#8e97a3 - 55%
#a2aab4 - 65%
#b7bdc5 - 75%
#ccd0d5 - 85%
#e0e3e6 - 95%
#f5f6f7
Shades (mixed with black)
- 5%
#2f3e54 - 15%
#2a374b - 25%
#253142 - 35%
#202a39 - 45%
#1b2430 - 55%
#161d28 - 65%
#11171f - 75%
#0c1016 - 85%
#070a0d - 95%
#020304
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, slate-700's complementary color is #4D3D25 (close to darkslategray), its analogous colors are #254552 and #3F3D57, and its triadic partners are #553738 and #35462F. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #4d3d25 |
| Analogous | −30°, +30° | #254552#3f3d57 |
| Triadic | +120°, +240° | #553738#35462f |
| Split-complementary | +150°, +210° | #54392c#434226 |
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-700 is a cool color: its hue is 215° 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 |
|---|---|---|
| darkslategray | #2f4f4f | 5.2 |
| darkslateblue | #483d8b | 9.8 |
| midnightblue | #191970 | 13.2 |
Code snippets
<div class="bg-slate-700 text-white">...</div>
<p class="text-slate-700 border-slate-700">...</p>.element {
color: var(--color-slate-700);
background-color: oklch(37.2% 0.044 257.287);
border-color: #314158;
outline-color: rgb(49 65 88);
}import SwiftUI
extension Color {
static let slate700 = Color(red: 0.192, green: 0.255, blue: 0.345)
}import androidx.compose.ui.graphics.Color
val Slate700 = Color(0xFF314158)import 'package:flutter/material.dart';
const slate700 = Color(0xFF314158);<!-- res/values/colors.xml -->
<color name="slate_700">#314158</color>Frequently asked questions
- What is the hex code for Tailwind slate-700?
- In Tailwind CSS v4, slate-700 is oklch(37.2% 0.044 257.287), which converts to #314158 (rgb(49, 65, 88)) in sRGB. In Tailwind v3 the same name was #334155.
- What is the difference between slate-700 in Tailwind v3 and v4?
- v3 used the hex #334155; v4 redefined the palette in OKLCH as oklch(37.2% 0.044 257.287). In v3, slate-700 was #334155. The v4 value is ΔE OK 0.5 away, below the point where most people can tell them apart.
- How do I use slate-700 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-slate-700). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on slate-700?
- White text on slate-700 has a contrast ratio of 10.35:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.02:1 and fails AA even for large text. In APCA terms that is Lc −98.0 for white and Lc 9.9 for black.
- Which CSS named color is closest to slate-700?
- The closest is darkslategray (#2F4F4F) at ΔE OK 5.2, followed by darkslateblue and midnightblue.
Last reviewed by Arielton Oberek.