Tailwind CSS v4 default palette
Tailwind mist-900: #161B1D
In Tailwind CSS v4, mist-900 is defined as --color-mist-900: oklch(21.8% 0.008 223.9), which is #161B1D in hex and rgb(22, 27, 29): a very dark gray with a faint sky blue tint.
In OKLCH, mist-900 has a lightness of 21.8%, chroma 0.008 and hue 223.9°.
The value fits inside sRGB, so the hex #161B1D represents it without loss on any screen.
Tailwind mist is a tinted neutral added in v4.2: a cool gray with a slight blue-cyan cast. It has no v3 equivalent.
Color codes for mist-900
| Tailwind v4 token | --color-mist-900 |
|---|---|
| OKLCH (source value) | oklch(21.8% 0.008 223.9) |
| HEX | #161B1D |
| RGB | rgb(22, 27, 29) |
| HSL | hsl(197, 14%, 10%) |
| HWB | hwb(197 9% 89%) |
| CMYK (naive, no ICC profile) | cmyk(24%, 7%, 0%, 89%) |
| Decimal | 1,448,733 |
| Utility classes | bg-mist-900, text-mist-900, border-mist-900 |
Tailwind mist scale
Contrast and accessibility
On mist-900, white text has a contrast ratio of 17.37:1 and passes AAA at any text size; black text reaches 1.20: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 mist-900 | 1.20:1 | Fail | Fail | Fail | Fail | 0.0 |
| White text on mist-900 | 17.37:1 | Pass | Pass | Pass | Pass | −106.5 |
| Mist-900 text on white | 17.37:1 | Pass | Pass | Pass | Pass | 104.2 |
| Mist-900 text on black | 1.20:1 | Fail | Fail | Fail | Fail | 0.0 |
Tints and shades
Each step mixes var(--color-mist-900) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-mist-900), white 25%) in CSS.
Tints (mixed with white)
- 5%
#222628 - 15%
#393d3f - 25%
#505456 - 35%
#686b6c - 45%
#7f8283 - 55%
#969899 - 65%
#adafb0 - 75%
#c5c6c7 - 85%
#dcdddd - 95%
#f3f4f4
Shades (mixed with black)
- 5%
#151a1c - 15%
#131719 - 25%
#111416 - 35%
#0e1213 - 45%
#0c0f10 - 55%
#0a0c0d - 65%
#08090a - 75%
#060707 - 85%
#030404 - 95%
#010101
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, mist-900's complementary color is #1D1917 (close to midnightblue), its analogous colors are #161B1B and #181A1E, and its triadic partners are #1D191B and #1B1A16. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #1d1917 |
| Analogous | −30°, +30° | #161b1b#181a1e |
| Triadic | +120°, +240° | #1d191b#1b1a16 |
| Split-complementary | +150°, +210° | #1e1919#1c1a16 |
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 mist-900 is close to neutral: its OKLCH chroma is only 0.008, so its temperature comes from context. The faint 197° hue gives it a slightly cool 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
| Color | HEX | ΔE OK |
|---|---|---|
| midnightblue | #191970 | 15.5 |
| darkslategray | #2f4f4f | 18.8 |
| navy | #000080 | 18.9 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| zinc-900 | #18181b | 1.1 |
| stone-900 | #1c1917 | 1.4 |
| neutral-900 | #171717 | 1.5 |
Code snippets
<div class="bg-mist-900 text-white">...</div>
<p class="text-mist-900 border-mist-900">...</p>.element {
color: var(--color-mist-900);
background-color: oklch(21.8% 0.008 223.9);
border-color: #161b1d;
outline-color: rgb(22 27 29);
}import SwiftUI
extension Color {
static let mist900 = Color(red: 0.086, green: 0.106, blue: 0.114)
}import androidx.compose.ui.graphics.Color
val Mist900 = Color(0xFF161B1D)import 'package:flutter/material.dart';
const mist900 = Color(0xFF161B1D);<!-- res/values/colors.xml -->
<color name="mist_900">#161B1D</color>Frequently asked questions
- What is the hex code for Tailwind mist-900?
- In Tailwind CSS v4, mist-900 is oklch(21.8% 0.008 223.9), which converts to #161B1D (rgb(22, 27, 29)) in sRGB.
- Is mist-900 available in Tailwind v3?
- No. The mist 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 #161B1D.
- How do I use mist-900 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-mist-900). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on mist-900?
- White text on mist-900 has a contrast ratio of 17.37:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.20:1 and fails AA even for large text. In APCA terms that is Lc −106.5 for white and Lc 0.0 for black.
- Which CSS named color is closest to mist-900?
- The closest is midnightblue (#191970) at ΔE OK 15.5, followed by darkslategray and navy.
Last reviewed by Arielton Oberek.