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.
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
| Tailwind v4 token | --color-neutral-800 |
|---|---|
| OKLCH (source value) | oklch(26.9% 0 none) |
| HEX | #262626 |
| RGB | rgb(38, 38, 38) |
| HSL | hsl(0, 0%, 15%) |
| HWB | hwb(0 15% 85%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 0%, 0%, 85%) |
| Decimal | 2,500,134 |
| Tailwind v3 hex | #262626 |
| Utility classes | bg-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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on neutral-800 | 1.38:1 | Fail | Fail | Fail | Fail | 0.0 |
| White text on neutral-800 | 15.13:1 | Pass | Pass | Pass | Pass | −104.8 |
| Neutral-800 text on white | 15.13:1 | Pass | Pass | Pass | Pass | 102.0 |
| Neutral-800 text on black | 1.38:1 | Fail | Fail | Fail | Fail | 0.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)
- 5%
#313131 - 15%
#474747 - 25%
#5c5c5c - 35%
#727272 - 45%
#888888 - 55%
#9d9d9d - 65%
#b3b3b3 - 75%
#c9c9c9 - 85%
#dedede - 95%
#f4f4f4
Shades (mixed with black)
- 5%
#242424 - 15%
#202020 - 25%
#1d1d1d - 35%
#191919 - 45%
#151515 - 55%
#111111 - 65%
#0d0d0d - 75%
#0a0a0a - 85%
#060606 - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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
| Color | HEX | ΔE OK |
|---|---|---|
| darkslategray | #2f4f4f | 13.9 |
| midnightblue | #191970 | 14.5 |
| navy | #000080 | 18.8 |
Code snippets
<div class="bg-neutral-800 text-white">...</div>
<p class="text-neutral-800 border-neutral-800">...</p>.element {
color: var(--color-neutral-800);
background-color: oklch(26.9% 0 none);
border-color: #262626;
outline-color: rgb(38 38 38);
}import SwiftUI
extension Color {
static let neutral800 = Color(red: 0.149, green: 0.149, blue: 0.149)
}import androidx.compose.ui.graphics.Color
val Neutral800 = Color(0xFF262626)import 'package:flutter/material.dart';
const neutral800 = Color(0xFF262626);<!-- 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.