Tailwind CSS v4 default palette
Tailwind indigo-950: #1E1A4D
In Tailwind CSS v4, indigo-950 is defined as --color-indigo-950: oklch(25.7% 0.09 281.288), which is #1E1A4D in hex and rgb(30, 26, 77): a very dark, moderately saturated blue. In Tailwind v3, indigo-950 was #1E1B4B.
In OKLCH, indigo-950 has a lightness of 25.7%, chroma 0.090 and hue 281.3°.
The value fits inside sRGB, so the hex #1E1A4D represents it without loss on any screen.
In v3, indigo-950 was #1E1B4B. The v4 value is ΔE OK 0.4 away, below the point where most people can tell them apart.
Tailwind indigo is a blue-violet and the accent color in many Tailwind UI examples and early Tailwind templates.
Color codes for indigo-950
| Tailwind v4 token | --color-indigo-950 |
|---|---|
| OKLCH (source value) | oklch(25.7% 0.09 281.288) |
| HEX | #1E1A4D |
| RGB | rgb(30, 26, 77) |
| HSL | hsl(245, 50%, 20%) |
| HWB | hwb(245 10% 70%) |
| CMYK (naive, no ICC profile) | cmyk(61%, 66%, 0%, 70%) |
| Decimal | 1,972,813 |
| Tailwind v3 hex | #1E1B4B |
| Utility classes | bg-indigo-950, text-indigo-950, border-indigo-950 |
Tailwind indigo scale
Contrast and accessibility
On indigo-950, white text has a contrast ratio of 16.02:1 and passes AAA at any text size; black text reaches 1.31: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 indigo-950 | 1.31:1 | Fail | Fail | Fail | Fail | 0.0 |
| White text on indigo-950 | 16.02:1 | Pass | Pass | Pass | Pass | −105.4 |
| Indigo-950 text on white | 16.02:1 | Pass | Pass | Pass | Pass | 102.8 |
| Indigo-950 text on black | 1.31:1 | Fail | Fail | Fail | Fail | 0.0 |
Tints and shades
Each step mixes var(--color-indigo-950) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-indigo-950), white 25%) in CSS.
Tints (mixed with white)
- 5%
#292556 - 15%
#403c68 - 25%
#56537a - 35%
#6d6a8b - 45%
#83819d - 55%
#9a98af - 65%
#b0afc1 - 75%
#c7c6d3 - 85%
#dddde4 - 95%
#f4f4f6
Shades (mixed with black)
- 5%
#1d1949 - 15%
#1a1641 - 25%
#17143a - 35%
#141132 - 45%
#110e2a - 55%
#0d0c23 - 65%
#0b091b - 75%
#080713 - 85%
#05040c - 95%
#020104
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, indigo-950's complementary color is #2B2300 (close to darkslategray), its analogous colors are #00234C and #311242, and its triadic partners are #440D00 and #002E16. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #2b2300 |
| Analogous | −30°, +30° | #00234c#311242 |
| Triadic | +120°, +240° | #440d00#002e16 |
| Split-complementary | +150°, +210° | #391b00#122b00 |
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 indigo-950 is a cool color: its hue is 245° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.
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 | 6.4 |
| navy | #000080 | 10.6 |
| darkblue | #00008b | 12.1 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| blue-950 | #162456 | 3.3 |
| slate-800 | #1d293d | 5.8 |
| violet-950 | #2f0d68 | 6.0 |
Code snippets
<div class="bg-indigo-950 text-white">...</div>
<p class="text-indigo-950 border-indigo-950">...</p>.element {
color: var(--color-indigo-950);
background-color: oklch(25.7% 0.09 281.288);
border-color: #1e1a4d;
outline-color: rgb(30 26 77);
}import SwiftUI
extension Color {
static let indigo950 = Color(red: 0.118, green: 0.102, blue: 0.302)
}import androidx.compose.ui.graphics.Color
val Indigo950 = Color(0xFF1E1A4D)import 'package:flutter/material.dart';
const indigo950 = Color(0xFF1E1A4D);<!-- res/values/colors.xml -->
<color name="indigo_950">#1E1A4D</color>Frequently asked questions
- What is the hex code for Tailwind indigo-950?
- In Tailwind CSS v4, indigo-950 is oklch(25.7% 0.09 281.288), which converts to #1E1A4D (rgb(30, 26, 77)) in sRGB. In Tailwind v3 the same name was #1E1B4B.
- What is the difference between indigo-950 in Tailwind v3 and v4?
- v3 used the hex #1E1B4B; v4 redefined the palette in OKLCH as oklch(25.7% 0.09 281.288). In v3, indigo-950 was #1E1B4B. The v4 value is ΔE OK 0.4 away, below the point where most people can tell them apart.
- How do I use indigo-950 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-indigo-950). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on indigo-950?
- White text on indigo-950 has a contrast ratio of 16.02:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.31:1 and fails AA even for large text. In APCA terms that is Lc −105.4 for white and Lc 0.0 for black.
- Which CSS named color is closest to indigo-950?
- The closest is midnightblue (#191970) at ΔE OK 6.4, followed by navy and darkblue.
Last reviewed by Arielton Oberek.