Skip to content

Tailwind CSS v4 default palette

Tailwind neutral-800: #262626

In Tailwind CSS v4, neutral-800 is defined as --color-neutral-800: oklch(26.9% 0 none), which is #262626 in hex and rgb(38, 38, 38): a very dark neutral gray. In Tailwind v3, neutral-800 was #262626.

neutral-800#262626

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

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

In v3, neutral-800 was #262626. 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-800

Color codes for neutral-800
Tailwind v4 token--color-neutral-800
OKLCH (source value)oklch(26.9% 0 none)
HEX#262626
RGBrgb(38, 38, 38)
HSLhsl(0, 0%, 15%)
HWBhwb(0 15% 85%)
CMYK (naive, no ICC profile)cmyk(0%, 0%, 0%, 85%)
Decimal2,500,134
Tailwind v3 hex#262626
Utility classesbg-neutral-800, text-neutral-800, border-neutral-800

Tailwind neutral scale

Contrast and accessibility

On neutral-800, white text has a contrast ratio of 15.13:1 and passes AAA at any text size; black text reaches 1.38: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-8001.38:1FailFailFailFail0.0
White text on neutral-80015.13:1PassPassPassPass−104.8
Neutral-800 text on white15.13:1PassPassPassPass102.0
Neutral-800 text on black1.38:1FailFailFailFail0.0

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #313131
  2. 15%
    #474747
  3. 25%
    #5c5c5c
  4. 35%
    #727272
  5. 45%
    #888888
  6. 55%
    #9d9d9d
  7. 65%
    #b3b3b3
  8. 75%
    #c9c9c9
  9. 85%
    #dedede
  10. 95%
    #f4f4f4

Shades (mixed with black)

  1. 5%
    #242424
  2. 15%
    #202020
  3. 25%
    #1d1d1d
  4. 35%
    #191919
  5. 45%
    #151515
  6. 55%
    #111111
  7. 65%
    #0d0d0d
  8. 75%
    #0a0a0a
  9. 85%
    #060606
  10. 95%
    #020202

Color harmonies

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

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

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-800 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#2f4f4f13.9
midnightblue#19197014.5
navy#00008018.8

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
stone-800#2925240.7
zinc-800#27272a0.8
taupe-800#2b24221.1

Code snippets

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

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

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

const neutral800 = Color(0xFF262626);
Android XML
<!-- res/values/colors.xml -->
<color name="neutral_800">#262626</color>

Frequently asked questions

What is the hex code for Tailwind neutral-800?
In Tailwind CSS v4, neutral-800 is oklch(26.9% 0 none), which converts to #262626 (rgb(38, 38, 38)) in sRGB. In Tailwind v3 the same name was #262626.
What is the difference between neutral-800 in Tailwind v3 and v4?
v3 used the hex #262626; v4 redefined the palette in OKLCH as oklch(26.9% 0 none). In v3, neutral-800 was #262626. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
How do I use neutral-800 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-neutral-800). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on neutral-800?
White text on neutral-800 has a contrast ratio of 15.13:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.38:1 and fails AA even for large text. In APCA terms that is Lc −104.8 for white and Lc 0.0 for black.
Which CSS named color is closest to neutral-800?
The closest is darkslategray (#2F4F4F) at ΔE OK 13.9, followed by midnightblue and navy.

Last reviewed by Arielton Oberek.