Tailwind CSS v4 default palette
Tailwind mauve-900: #1D161E
In Tailwind CSS v4, mauve-900 is defined as --color-mauve-900: oklch(21.2% 0.019 322.12), which is #1D161E in hex and rgb(29, 22, 30): a very dark, grayish purple.
In OKLCH, mauve-900 has a lightness of 21.2%, chroma 0.019 and hue 322.1°.
The value fits inside sRGB, so the hex #1D161E represents it without loss on any screen.
Tailwind mauve is one of four tinted neutral scales added in Tailwind CSS v4.2: a gray with a purple-pink cast. It has no v3 equivalent.
Color codes for mauve-900
| Tailwind v4 token | --color-mauve-900 |
|---|---|
| OKLCH (source value) | oklch(21.2% 0.019 322.12) |
| HEX | #1D161E |
| RGB | rgb(29, 22, 30) |
| HSL | hsl(293, 15%, 10%) |
| HWB | hwb(293 9% 88%) |
| CMYK (naive, no ICC profile) | cmyk(3%, 27%, 0%, 88%) |
| Decimal | 1,906,206 |
| Utility classes | bg-mauve-900, text-mauve-900, border-mauve-900 |
Tailwind mauve scale
Contrast and accessibility
On mauve-900, white text has a contrast ratio of 17.71:1 and passes AAA at any text size; black text reaches 1.18: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 mauve-900 | 1.18:1 | Fail | Fail | Fail | Fail | 0.0 |
| White text on mauve-900 | 17.71:1 | Pass | Pass | Pass | Pass | −106.7 |
| Mauve-900 text on white | 17.71:1 | Pass | Pass | Pass | Pass | 104.5 |
| Mauve-900 text on black | 1.18:1 | Fail | Fail | Fail | Fail | 0.0 |
Tints and shades
Each step mixes var(--color-mauve-900) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-mauve-900), white 25%) in CSS.
Tints (mixed with white)
- 5%
#282229 - 15%
#3f3940 - 25%
#565056 - 35%
#6c686d - 45%
#837f83 - 55%
#99969a - 65%
#b0adb0 - 75%
#c7c5c7 - 85%
#dddcdd - 95%
#f4f3f4
Shades (mixed with black)
- 5%
#1c151d - 15%
#19131a - 25%
#161117 - 35%
#130e14 - 45%
#100c11 - 55%
#0d0a0d - 65%
#0a080b - 75%
#070608 - 85%
#040305 - 95%
#010102
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, mauve-900's complementary color is #141B13 (close to midnightblue), its analogous colors are #191721 and #20151A, and its triadic partners are #1D180F and #0E1B1C. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #141b13 |
| Analogous | −30°, +30° | #191721#20151a |
| Triadic | +120°, +240° | #1d180f#0e1b1c |
| Split-complementary | +150°, +210° | #191a10#101c18 |
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 mauve-900 is close to neutral: its OKLCH chroma is only 0.019, so its temperature comes from context. The faint 293° 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.2 |
| navy | #000080 | 18.8 |
| darkslategray | #2f4f4f | 19.8 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| zinc-900 | #18181b | 1.5 |
| taupe-900 | #1d1816 | 2.0 |
| neutral-900 | #171717 | 2.0 |
Code snippets
<div class="bg-mauve-900 text-white">...</div>
<p class="text-mauve-900 border-mauve-900">...</p>.element {
color: var(--color-mauve-900);
background-color: oklch(21.2% 0.019 322.12);
border-color: #1d161e;
outline-color: rgb(29 22 30);
}import SwiftUI
extension Color {
static let mauve900 = Color(red: 0.114, green: 0.086, blue: 0.118)
}import androidx.compose.ui.graphics.Color
val Mauve900 = Color(0xFF1D161E)import 'package:flutter/material.dart';
const mauve900 = Color(0xFF1D161E);<!-- res/values/colors.xml -->
<color name="mauve_900">#1D161E</color>Frequently asked questions
- What is the hex code for Tailwind mauve-900?
- In Tailwind CSS v4, mauve-900 is oklch(21.2% 0.019 322.12), which converts to #1D161E (rgb(29, 22, 30)) in sRGB.
- Is mauve-900 available in Tailwind v3?
- No. The mauve 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 #1D161E.
- How do I use mauve-900 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-mauve-900). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on mauve-900?
- White text on mauve-900 has a contrast ratio of 17.71:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.18: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 mauve-900?
- The closest is midnightblue (#191970) at ΔE OK 15.2, followed by navy and darkslategray.
Last reviewed by Arielton Oberek.