Tailwind CSS v4 default palette
Tailwind mist-800: #22292B
In Tailwind CSS v4, mist-800 is defined as --color-mist-800: oklch(27.5% 0.011 216.9), which is #22292B in hex and rgb(34, 41, 43): a very dark gray with a faint sky blue tint.
In OKLCH, mist-800 has a lightness of 27.5%, chroma 0.011 and hue 216.9°.
The value fits inside sRGB, so the hex #22292B 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-800
| Tailwind v4 token | --color-mist-800 |
|---|---|
| OKLCH (source value) | oklch(27.5% 0.011 216.9) |
| HEX | #22292B |
| RGB | rgb(34, 41, 43) |
| HSL | hsl(193, 12%, 15%) |
| HWB | hwb(193 13% 83%) |
| CMYK (naive, no ICC profile) | cmyk(21%, 5%, 0%, 83%) |
| Decimal | 2,238,763 |
| Utility classes | bg-mist-800, text-mist-800, border-mist-800 |
Tailwind mist scale
Contrast and accessibility
On mist-800, white text has a contrast ratio of 14.78:1 and passes AAA at any text size; black text reaches 1.42: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-800 | 1.42:1 | Fail | Fail | Fail | Fail | 0.0 |
| White text on mist-800 | 14.78:1 | Pass | Pass | Pass | Pass | −104.5 |
| Mist-800 text on white | 14.78:1 | Pass | Pass | Pass | Pass | 101.6 |
| Mist-800 text on black | 1.42:1 | Fail | Fail | Fail | Fail | 0.0 |
Tints and shades
Each step mixes var(--color-mist-800) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-mist-800), white 25%) in CSS.
Tints (mixed with white)
- 5%
#2d3436 - 15%
#43494b - 25%
#595f60 - 35%
#6f7475 - 45%
#85898a - 55%
#9c9fa0 - 65%
#b2b4b5 - 75%
#c8caca - 85%
#dedfdf - 95%
#f4f4f4
Shades (mixed with black)
- 5%
#202729 - 15%
#1d2325 - 25%
#1a1f20 - 35%
#161b1c - 45%
#131718 - 55%
#0f1213 - 65%
#0c0e0f - 75%
#090a0b - 85%
#050606 - 95%
#020202
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, mist-800's complementary color is #2D2624 (close to darkslategray), its analogous colors are #222928 and #23282D, and its triadic partners are #2B262A and #292822. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #2d2624 |
| Analogous | −30°, +30° | #222928#23282d |
| Triadic | +120°, +240° | #2b262a#292822 |
| Split-complementary | +150°, +210° | #2d2527#2b2722 |
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-800 is close to neutral: its OKLCH chroma is only 0.011, so its temperature comes from context. The faint 193° 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 |
|---|---|---|
| darkslategray | #2f4f4f | 13.1 |
| midnightblue | #191970 | 13.8 |
| navy | #000080 | 18.1 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| zinc-800 | #27272a | 1.1 |
| neutral-800 | #262626 | 1.3 |
| stone-800 | #292524 | 1.9 |
Code snippets
<div class="bg-mist-800 text-white">...</div>
<p class="text-mist-800 border-mist-800">...</p>.element {
color: var(--color-mist-800);
background-color: oklch(27.5% 0.011 216.9);
border-color: #22292b;
outline-color: rgb(34 41 43);
}import SwiftUI
extension Color {
static let mist800 = Color(red: 0.133, green: 0.161, blue: 0.169)
}import androidx.compose.ui.graphics.Color
val Mist800 = Color(0xFF22292B)import 'package:flutter/material.dart';
const mist800 = Color(0xFF22292B);<!-- res/values/colors.xml -->
<color name="mist_800">#22292B</color>Frequently asked questions
- What is the hex code for Tailwind mist-800?
- In Tailwind CSS v4, mist-800 is oklch(27.5% 0.011 216.9), which converts to #22292B (rgb(34, 41, 43)) in sRGB.
- Is mist-800 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 #22292B.
- How do I use mist-800 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-mist-800). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on mist-800?
- White text on mist-800 has a contrast ratio of 14.78:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.42:1 and fails AA even for large text. In APCA terms that is Lc −104.5 for white and Lc 0.0 for black.
- Which CSS named color is closest to mist-800?
- The closest is darkslategray (#2F4F4F) at ΔE OK 13.1, followed by midnightblue and navy.
Last reviewed by Arielton Oberek.