Skip to content

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.

slate-700#314158

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

Color codes for slate-700
Tailwind v4 token--color-slate-700
OKLCH (source value)oklch(37.2% 0.044 257.287)
HEX#314158
RGBrgb(49, 65, 88)
HSLhsl(215, 28%, 27%)
HWBhwb(215 19% 65%)
CMYK (naive, no ICC profile)cmyk(44%, 26%, 0%, 65%)
Decimal3,227,992
Tailwind v3 hex#334155
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on slate-7002.02:1FailFailFailFail9.9
White text on slate-70010.35:1PassPassPassPass−98.0
Slate-700 text on white10.35:1PassPassPassPass94.0
Slate-700 text on black2.02:1FailFailFailFail−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)

  1. 5%
    #3b4b60
  2. 15%
    #505e71
  3. 25%
    #657182
  4. 35%
    #798492
  5. 45%
    #8e97a3
  6. 55%
    #a2aab4
  7. 65%
    #b7bdc5
  8. 75%
    #ccd0d5
  9. 85%
    #e0e3e6
  10. 95%
    #f5f6f7

Shades (mixed with black)

  1. 5%
    #2f3e54
  2. 15%
    #2a374b
  3. 25%
    #253142
  4. 35%
    #202a39
  5. 45%
    #1b2430
  6. 55%
    #161d28
  7. 65%
    #11171f
  8. 75%
    #0c1016
  9. 85%
    #070a0d
  10. 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.

Color harmonies
HarmonyRotationColor
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

Nearest CSS named colors
ColorHEXΔE OK
darkslategray#2f4f4f5.2
darkslateblue#483d8b9.8
midnightblue#19197013.2

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
gray-700#3641531.0
zinc-700#3f3f463.3
mist-700#3944473.5

Code snippets

Tailwind CSS
<div class="bg-slate-700 text-white">...</div>
<p class="text-slate-700 border-slate-700">...</p>
CSS
.element {
  color: var(--color-slate-700);
  background-color: oklch(37.2% 0.044 257.287);
  border-color: #314158;
  outline-color: rgb(49 65 88);
}
SwiftUI
import SwiftUI

extension Color {
  static let slate700 = Color(red: 0.192, green: 0.255, blue: 0.345)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const slate700 = Color(0xFF314158);
Android XML
<!-- 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.