Skip to content

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.

indigo-950#1E1A4D

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

Color codes for indigo-950
Tailwind v4 token--color-indigo-950
OKLCH (source value)oklch(25.7% 0.09 281.288)
HEX#1E1A4D
RGBrgb(30, 26, 77)
HSLhsl(245, 50%, 20%)
HWBhwb(245 10% 70%)
CMYK (naive, no ICC profile)cmyk(61%, 66%, 0%, 70%)
Decimal1,972,813
Tailwind v3 hex#1E1B4B
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on indigo-9501.31:1FailFailFailFail0.0
White text on indigo-95016.02:1PassPassPassPass−105.4
Indigo-950 text on white16.02:1PassPassPassPass102.8
Indigo-950 text on black1.31:1FailFailFailFail0.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)

  1. 5%
    #292556
  2. 15%
    #403c68
  3. 25%
    #56537a
  4. 35%
    #6d6a8b
  5. 45%
    #83819d
  6. 55%
    #9a98af
  7. 65%
    #b0afc1
  8. 75%
    #c7c6d3
  9. 85%
    #dddde4
  10. 95%
    #f4f4f6

Shades (mixed with black)

  1. 5%
    #1d1949
  2. 15%
    #1a1641
  3. 25%
    #17143a
  4. 35%
    #141132
  5. 45%
    #110e2a
  6. 55%
    #0d0c23
  7. 65%
    #0b091b
  8. 75%
    #080713
  9. 85%
    #05040c
  10. 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.

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

Nearest CSS named colors
ColorHEXΔE OK
midnightblue#1919706.4
navy#00008010.6
darkblue#00008b12.1

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
blue-950#1624563.3
slate-800#1d293d5.8
violet-950#2f0d686.0

Code snippets

Tailwind CSS
<div class="bg-indigo-950 text-white">...</div>
<p class="text-indigo-950 border-indigo-950">...</p>
CSS
.element {
  color: var(--color-indigo-950);
  background-color: oklch(25.7% 0.09 281.288);
  border-color: #1e1a4d;
  outline-color: rgb(30 26 77);
}
SwiftUI
import SwiftUI

extension Color {
  static let indigo950 = Color(red: 0.118, green: 0.102, blue: 0.302)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

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