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.
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
| Tailwind v4 token | --color-gray-700 |
|---|---|
| OKLCH (source value) | oklch(37.3% 0.034 259.733) |
| HEX | #364153 |
| RGB | rgb(54, 65, 83) |
| HSL | hsl(217, 21%, 27%) |
| HWB | hwb(217 21% 67%) |
| CMYK (naive, no ICC profile) | cmyk(35%, 22%, 0%, 67%) |
| Decimal | 3,555,667 |
| Tailwind v3 hex | #374151 |
| Utility classes | bg-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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on gray-700 | 2.03:1 | Fail | Fail | Fail | Fail | 10.0 |
| White text on gray-700 | 10.30:1 | Pass | Pass | Pass | Pass | −97.9 |
| Gray-700 text on white | 10.30:1 | Pass | Pass | Pass | Pass | 93.9 |
| Gray-700 text on black | 2.03:1 | Fail | Fail | Fail | Fail | −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)
- 5%
#404b5c - 15%
#545e6d - 25%
#68717e - 35%
#7c848f - 45%
#9097a0 - 55%
#a5aab2 - 65%
#b9bdc3 - 75%
#cdd0d4 - 85%
#e1e3e5 - 95%
#f5f6f6
Shades (mixed with black)
- 5%
#333e4f - 15%
#2e3747 - 25%
#29313e - 35%
#232a36 - 45%
#1e242e - 55%
#181d25 - 65%
#13171d - 75%
#0e1015 - 85%
#080a0c - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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
| Color | HEX | ΔE OK |
|---|---|---|
| darkslategray | #2f4f4f | 4.8 |
| darkslateblue | #483d8b | 10.4 |
| midnightblue | #191970 | 14.0 |
Code snippets
<div class="bg-gray-700 text-white">...</div>
<p class="text-gray-700 border-gray-700">...</p>.element {
color: var(--color-gray-700);
background-color: oklch(37.3% 0.034 259.733);
border-color: #364153;
outline-color: rgb(54 65 83);
}import SwiftUI
extension Color {
static let gray700 = Color(red: 0.212, green: 0.255, blue: 0.325)
}import androidx.compose.ui.graphics.Color
val Gray700 = Color(0xFF364153)import 'package:flutter/material.dart';
const gray700 = Color(0xFF364153);<!-- 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.