Skip to content

Tailwind CSS v4 default palette

Tailwind taupe-900: #1D1816

In Tailwind CSS v4, taupe-900 is defined as --color-taupe-900: oklch(21.4% 0.009 43.1), which is #1D1816 in hex and rgb(29, 24, 22): a very dark gray with a faint brown tint.

taupe-900#1D1816

In OKLCH, taupe-900 has a lightness of 21.4%, chroma 0.009 and hue 43.1°.

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

Tailwind taupe is a tinted neutral added in v4.2: a warm gray with a brown cast. It has no v3 equivalent.

Color codes for taupe-900

Color codes for taupe-900
Tailwind v4 token--color-taupe-900
OKLCH (source value)oklch(21.4% 0.009 43.1)
HEX#1D1816
RGBrgb(29, 24, 22)
HSLhsl(17, 14%, 10%)
HWBhwb(17 9% 89%)
CMYK (naive, no ICC profile)cmyk(0%, 17%, 24%, 89%)
Decimal1,906,710
Utility classesbg-taupe-900, text-taupe-900, border-taupe-900

Tailwind taupe scale

Contrast and accessibility

On taupe-900, white text has a contrast ratio of 17.58:1 and passes AAA at any text size; black text reaches 1.19: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 taupe-9001.19:1FailFailFailFail0.0
White text on taupe-90017.58:1PassPassPassPass−106.7
Taupe-900 text on white17.58:1PassPassPassPass104.4
Taupe-900 text on black1.19:1FailFailFailFail0.0

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #282422
  2. 15%
    #3f3b39
  3. 25%
    #565250
  4. 35%
    #6c6968
  5. 45%
    #83807f
  6. 55%
    #999796
  7. 65%
    #b0aead
  8. 75%
    #c7c5c5
  9. 85%
    #dddcdc
  10. 95%
    #f4f3f3

Shades (mixed with black)

  1. 5%
    #1c1715
  2. 15%
    #191413
  3. 25%
    #161211
  4. 35%
    #13100e
  5. 45%
    #100d0c
  6. 55%
    #0d0b0a
  7. 65%
    #0a0808
  8. 75%
    #070606
  9. 85%
    #040403
  10. 95%
    #010101

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, taupe-900's complementary color is #151A1C (close to midnightblue), its analogous colors are #1D1818 and #1C1915, and its triadic partners are #161B18 and #18191D. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#151a1c
Analogous−30°, +30°#1d1818#1c1915
Triadic+120°, +240°#161b18#18191d
Split-complementary+150°, +210°#151b1a#161a1d

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 taupe-900 is close to neutral: its OKLCH chroma is only 0.009, so its temperature comes from context. The faint 17° hue gives it a slightly warm cast.

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
midnightblue#19197016.7
darkslategray#2f4f4f19.4
navy#00008020.3

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
stone-900#1c19170.4
neutral-900#1717171.3
zinc-900#18181b1.4

Code snippets

Tailwind CSS
<div class="bg-taupe-900 text-white">...</div>
<p class="text-taupe-900 border-taupe-900">...</p>
CSS
.element {
  color: var(--color-taupe-900);
  background-color: oklch(21.4% 0.009 43.1);
  border-color: #1d1816;
  outline-color: rgb(29 24 22);
}
SwiftUI
import SwiftUI

extension Color {
  static let taupe900 = Color(red: 0.114, green: 0.094, blue: 0.086)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const taupe900 = Color(0xFF1D1816);
Android XML
<!-- res/values/colors.xml -->
<color name="taupe_900">#1D1816</color>

Frequently asked questions

What is the hex code for Tailwind taupe-900?
In Tailwind CSS v4, taupe-900 is oklch(21.4% 0.009 43.1), which converts to #1D1816 (rgb(29, 24, 22)) in sRGB.
Is taupe-900 available in Tailwind v3?
No. The taupe scale was added in Tailwind CSS v4.2. In v3 you can recreate it in tailwind.config.js under theme.extend.colors with the hex #1D1816.
How do I use taupe-900 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-taupe-900). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on taupe-900?
White text on taupe-900 has a contrast ratio of 17.58:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.19:1 and fails AA even for large text. In APCA terms that is Lc −106.7 for white and Lc 0.0 for black.
Which CSS named color is closest to taupe-900?
The closest is midnightblue (#191970) at ΔE OK 16.7, followed by darkslategray and navy.

Last reviewed by Arielton Oberek.