Skip to content

Tailwind CSS v4 default palette

Tailwind neutral-700: #404040

In Tailwind CSS v4, neutral-700 is defined as --color-neutral-700: oklch(37.1% 0 none), which is #404040 in hex and rgb(64, 64, 64): a dark neutral gray. In Tailwind v3, neutral-700 was #404040.

neutral-700#404040

In OKLCH, neutral-700 has a lightness of 37.1% and zero chroma: a gray with no hue at all.

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

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

Tailwind neutral is a true gray: its OKLCH chroma is zero in every shade, so it has no hue at all.

Color codes for neutral-700

Color codes for neutral-700
Tailwind v4 token--color-neutral-700
OKLCH (source value)oklch(37.1% 0 none)
HEX#404040
RGBrgb(64, 64, 64)
HSLhsl(0, 0%, 25%)
HWBhwb(0 25% 75%)
CMYK (naive, no ICC profile)cmyk(0%, 0%, 0%, 75%)
Decimal4,210,752
Tailwind v3 hex#404040
Utility classesbg-neutral-700, text-neutral-700, border-neutral-700

Tailwind neutral scale

Contrast and accessibility

On neutral-700, white text has a contrast ratio of 10.36: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 neutral-7002.02:1FailFailFailFail9.8
White text on neutral-70010.36:1PassPassPassPass−98.1
Neutral-700 text on white10.36:1PassPassPassPass94.1
Neutral-700 text on black2.02:1FailFailFailFail−8.5

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #4a4a4a
  2. 15%
    #5d5d5d
  3. 25%
    #707070
  4. 35%
    #838383
  5. 45%
    #969696
  6. 55%
    #a9a9a9
  7. 65%
    #bcbcbc
  8. 75%
    #cfcfcf
  9. 85%
    #e2e2e2
  10. 95%
    #f5f5f5

Shades (mixed with black)

  1. 5%
    #3d3d3d
  2. 15%
    #363636
  3. 25%
    #303030
  4. 35%
    #2a2a2a
  5. 45%
    #232323
  6. 55%
    #1d1d1d
  7. 65%
    #161616
  8. 75%
    #101010
  9. 85%
    #0a0a0a
  10. 95%
    #030303

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, neutral-700's complementary color is #404040 (close to darkslategray), its analogous colors are #404040 and #404040, and its triadic partners are #404040 and #404040. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#404040
Analogous−30°, +30°#404040#404040
Triadic+120°, +240°#404040#404040
Split-complementary+150°, +210°#404040#404040

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 neutral-700 is close to neutral: its OKLCH chroma is only 0.000, 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

Nearest CSS named colors
ColorHEXΔE OK
darkslategray#2f4f4f4.9
darkslateblue#483d8b13.2
dimgray#69696915.0

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
stone-700#44403b1.0
zinc-700#3f3f461.3
taupe-700#473c391.6

Code snippets

Tailwind CSS
<div class="bg-neutral-700 text-white">...</div>
<p class="text-neutral-700 border-neutral-700">...</p>
CSS
.element {
  color: var(--color-neutral-700);
  background-color: oklch(37.1% 0 none);
  border-color: #404040;
  outline-color: rgb(64 64 64);
}
SwiftUI
import SwiftUI

extension Color {
  static let neutral700 = Color(red: 0.251, green: 0.251, blue: 0.251)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const neutral700 = Color(0xFF404040);
Android XML
<!-- res/values/colors.xml -->
<color name="neutral_700">#404040</color>

Frequently asked questions

What is the hex code for Tailwind neutral-700?
In Tailwind CSS v4, neutral-700 is oklch(37.1% 0 none), which converts to #404040 (rgb(64, 64, 64)) in sRGB. In Tailwind v3 the same name was #404040.
What is the difference between neutral-700 in Tailwind v3 and v4?
v3 used the hex #404040; v4 redefined the palette in OKLCH as oklch(37.1% 0 none). In v3, neutral-700 was #404040. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
How do I use neutral-700 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-neutral-700). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on neutral-700?
White text on neutral-700 has a contrast ratio of 10.36: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.1 for white and Lc 9.8 for black.
Which CSS named color is closest to neutral-700?
The closest is darkslategray (#2F4F4F) at ΔE OK 4.9, followed by darkslateblue and dimgray.

Last reviewed by Arielton Oberek.