Skip to content

Tailwind CSS v4 default palette

Tailwind gray-700: #364153

In Tailwind CSS v4, gray-700 is defined as --color-gray-700: oklch(37.3% 0.034 259.733), which is #364153 in hex and rgb(54, 65, 83): a dark, grayish blue. In Tailwind v3, gray-700 was #374151.

gray-700#364153

In OKLCH, gray-700 has a lightness of 37.3%, chroma 0.034 and hue 259.7°. It is the most saturated shade of the gray scale.

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

In v3, gray-700 was #374151. The v4 value is ΔE OK 0.3 away, below the point where most people can tell them apart.

Tailwind gray is a cool gray with a lighter blue tint than slate, the default neutral in many Tailwind projects.

Color codes for gray-700

Color codes for gray-700
Tailwind v4 token--color-gray-700
OKLCH (source value)oklch(37.3% 0.034 259.733)
HEX#364153
RGBrgb(54, 65, 83)
HSLhsl(217, 21%, 27%)
HWBhwb(217 21% 67%)
CMYK (naive, no ICC profile)cmyk(35%, 22%, 0%, 67%)
Decimal3,555,667
Tailwind v3 hex#374151
Utility classesbg-gray-700, text-gray-700, border-gray-700

Tailwind gray scale

Contrast and accessibility

On gray-700, white text has a contrast ratio of 10.30:1 and passes AAA at any text size; black text reaches 2.03: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 gray-7002.03:1FailFailFailFail10.0
White text on gray-70010.30:1PassPassPassPass−97.9
Gray-700 text on white10.30:1PassPassPassPass93.9
Gray-700 text on black2.03:1FailFailFailFail−8.6

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #404b5c
  2. 15%
    #545e6d
  3. 25%
    #68717e
  4. 35%
    #7c848f
  5. 45%
    #9097a0
  6. 55%
    #a5aab2
  7. 65%
    #b9bdc3
  8. 75%
    #cdd0d4
  9. 85%
    #e1e3e5
  10. 95%
    #f5f6f6

Shades (mixed with black)

  1. 5%
    #333e4f
  2. 15%
    #2e3747
  3. 25%
    #29313e
  4. 35%
    #232a36
  5. 45%
    #1e242e
  6. 55%
    #181d25
  7. 65%
    #13171d
  8. 75%
    #0e1015
  9. 85%
    #080a0c
  10. 95%
    #030304

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, gray-700's complementary color is #4A3F2C (close to darkslategray), its analogous colors are #2D444F and #403E52, and its triadic partners are #513939 and #374534. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#4a3f2c
Analogous−30°, +30°#2d444f#403e52
Triadic+120°, +240°#513939#374534
Split-complementary+150°, +210°#503b30#41422d

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 gray-700 is a cool color: its hue is 217° 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#2f4f4f4.8
darkslateblue#483d8b10.4
midnightblue#19197014.0

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
slate-700#3141581.0
zinc-700#3f3f462.3
mist-700#3944472.6

Code snippets

Tailwind CSS
<div class="bg-gray-700 text-white">...</div>
<p class="text-gray-700 border-gray-700">...</p>
CSS
.element {
  color: var(--color-gray-700);
  background-color: oklch(37.3% 0.034 259.733);
  border-color: #364153;
  outline-color: rgb(54 65 83);
}
SwiftUI
import SwiftUI

extension Color {
  static let gray700 = Color(red: 0.212, green: 0.255, blue: 0.325)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const gray700 = Color(0xFF364153);
Android XML
<!-- res/values/colors.xml -->
<color name="gray_700">#364153</color>

Frequently asked questions

What is the hex code for Tailwind gray-700?
In Tailwind CSS v4, gray-700 is oklch(37.3% 0.034 259.733), which converts to #364153 (rgb(54, 65, 83)) in sRGB. In Tailwind v3 the same name was #374151.
What is the difference between gray-700 in Tailwind v3 and v4?
v3 used the hex #374151; v4 redefined the palette in OKLCH as oklch(37.3% 0.034 259.733). In v3, gray-700 was #374151. The v4 value is ΔE OK 0.3 away, below the point where most people can tell them apart.
How do I use gray-700 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-gray-700). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on gray-700?
White text on gray-700 has a contrast ratio of 10.30:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.03:1 and fails AA even for large text. In APCA terms that is Lc −97.9 for white and Lc 10.0 for black.
Which CSS named color is closest to gray-700?
The closest is darkslategray (#2F4F4F) at ΔE OK 4.8, followed by darkslateblue and midnightblue.

Last reviewed by Arielton Oberek.