Skip to content

Tailwind CSS v4 default palette

Tailwind indigo-800: #372AAC

In Tailwind CSS v4, indigo-800 is defined as --color-indigo-800: oklch(39.8% 0.195 277.366), which is #372AAC in hex and rgb(55, 42, 172): a dark, vivid blue-violet. In Tailwind v3, indigo-800 was #3730A3.

indigo-800#372AAC

In OKLCH, indigo-800 has a lightness of 39.8%, chroma 0.195 and hue 277.4°.

The value fits inside sRGB, so the hex #372AAC represents it without loss on any screen.

In v3, indigo-800 was #3730A3. The v4 value is ΔE OK 1.8 away, below the point where most people can tell them apart; v4 is more saturated.

Tailwind indigo is a blue-violet and the accent color in many Tailwind UI examples and early Tailwind templates.

Color codes for indigo-800

Color codes for indigo-800
Tailwind v4 token--color-indigo-800
OKLCH (source value)oklch(39.8% 0.195 277.366)
HEX#372AAC
RGBrgb(55, 42, 172)
HSLhsl(246, 61%, 42%)
HWBhwb(246 16% 33%)
CMYK (naive, no ICC profile)cmyk(68%, 76%, 0%, 33%)
Decimal3,615,404
Tailwind v3 hex#3730A3
Utility classesbg-indigo-800, text-indigo-800, border-indigo-800

Tailwind indigo scale

Contrast and accessibility

On indigo-800, white text has a contrast ratio of 10.05:1 and passes AAA at any text size; black text reaches 2.08: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-8002.08:1FailFailFailFail11.6
White text on indigo-80010.05:1PassPassPassPass−96.6
Indigo-800 text on white10.05:1PassPassPassPass92.4
Indigo-800 text on black2.08:1FailFailFailFail−10.1

Tints and shades

Each step mixes var(--color-indigo-800) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-indigo-800), white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #4135b0
  2. 15%
    #554ab8
  3. 25%
    #695fc1
  4. 35%
    #7d75c9
  5. 45%
    #918ad1
  6. 55%
    #a59fda
  7. 65%
    #b9b4e2
  8. 75%
    #cdcaea
  9. 85%
    #e1dff3
  10. 95%
    #f5f4fb

Shades (mixed with black)

  1. 5%
    #3428a3
  2. 15%
    #2f2492
  3. 25%
    #292081
  4. 35%
    #241b70
  5. 45%
    #1e175f
  6. 55%
    #19134d
  7. 65%
    #130f3c
  8. 75%
    #0e0b2b
  9. 85%
    #08061a
  10. 95%
    #030209

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, indigo-800's complementary color is #564600 (close to darkslategray), its analogous colors are #00488C and #640C95, and its triadic partners are #890A00 and #00592B. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#564600
Analogous−30°, +30°#00488c#640c95
Triadic+120°, +240°#890a00#00592b
Split-complementary+150°, +210°#6c3800#345200

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-800 is a cool color: its hue is 246° 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
darkslateblue#483d8b7.6
mediumblue#0000cd8.9
rebeccapurple#6633999.7

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
blue-800#193cb84.8
violet-900#4d179a5.8
blue-900#1c398e6.3

Code snippets

Tailwind CSS
<div class="bg-indigo-800 text-white">...</div>
<p class="text-indigo-800 border-indigo-800">...</p>
CSS
.element {
  color: var(--color-indigo-800);
  background-color: oklch(39.8% 0.195 277.366);
  border-color: #372aac;
  outline-color: rgb(55 42 172);
}
SwiftUI
import SwiftUI

extension Color {
  static let indigo800 = Color(red: 0.216, green: 0.165, blue: 0.675)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const indigo800 = Color(0xFF372AAC);
Android XML
<!-- res/values/colors.xml -->
<color name="indigo_800">#372AAC</color>

Frequently asked questions

What is the hex code for Tailwind indigo-800?
In Tailwind CSS v4, indigo-800 is oklch(39.8% 0.195 277.366), which converts to #372AAC (rgb(55, 42, 172)) in sRGB. In Tailwind v3 the same name was #3730A3.
What is the difference between indigo-800 in Tailwind v3 and v4?
v3 used the hex #3730A3; v4 redefined the palette in OKLCH as oklch(39.8% 0.195 277.366). In v3, indigo-800 was #3730A3. The v4 value is ΔE OK 1.8 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use indigo-800 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-indigo-800). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on indigo-800?
White text on indigo-800 has a contrast ratio of 10.05:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.08:1 and fails AA even for large text. In APCA terms that is Lc −96.6 for white and Lc 11.6 for black.
Which CSS named color is closest to indigo-800?
The closest is darkslateblue (#483D8B) at ΔE OK 7.6, followed by mediumblue and rebeccapurple.

Last reviewed by Arielton Oberek.