Skip to content

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.

mist-900#161B1D

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

Color codes for mist-900
Tailwind v4 token--color-mist-900
OKLCH (source value)oklch(21.8% 0.008 223.9)
HEX#161B1D
RGBrgb(22, 27, 29)
HSLhsl(197, 14%, 10%)
HWBhwb(197 9% 89%)
CMYK (naive, no ICC profile)cmyk(24%, 7%, 0%, 89%)
Decimal1,448,733
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on mist-9001.20:1FailFailFailFail0.0
White text on mist-90017.37:1PassPassPassPass−106.5
Mist-900 text on white17.37:1PassPassPassPass104.2
Mist-900 text on black1.20:1FailFailFailFail0.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)

  1. 5%
    #222628
  2. 15%
    #393d3f
  3. 25%
    #505456
  4. 35%
    #686b6c
  5. 45%
    #7f8283
  6. 55%
    #969899
  7. 65%
    #adafb0
  8. 75%
    #c5c6c7
  9. 85%
    #dcdddd
  10. 95%
    #f3f4f4

Shades (mixed with black)

  1. 5%
    #151a1c
  2. 15%
    #131719
  3. 25%
    #111416
  4. 35%
    #0e1213
  5. 45%
    #0c0f10
  6. 55%
    #0a0c0d
  7. 65%
    #08090a
  8. 75%
    #060707
  9. 85%
    #030404
  10. 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.

Color harmonies
HarmonyRotationColor
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

Nearest CSS named colors
ColorHEXΔE OK
midnightblue#19197015.5
darkslategray#2f4f4f18.8
navy#00008018.9

Nearest Tailwind v4 colors

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

Code snippets

Tailwind CSS
<div class="bg-mist-900 text-white">...</div>
<p class="text-mist-900 border-mist-900">...</p>
CSS
.element {
  color: var(--color-mist-900);
  background-color: oklch(21.8% 0.008 223.9);
  border-color: #161b1d;
  outline-color: rgb(22 27 29);
}
SwiftUI
import SwiftUI

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

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

const mist900 = Color(0xFF161B1D);
Android XML
<!-- 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.