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.
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
| Tailwind v4 token | --color-indigo-800 |
|---|---|
| OKLCH (source value) | oklch(39.8% 0.195 277.366) |
| HEX | #372AAC |
| RGB | rgb(55, 42, 172) |
| HSL | hsl(246, 61%, 42%) |
| HWB | hwb(246 16% 33%) |
| CMYK (naive, no ICC profile) | cmyk(68%, 76%, 0%, 33%) |
| Decimal | 3,615,404 |
| Tailwind v3 hex | #3730A3 |
| Utility classes | bg-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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on indigo-800 | 2.08:1 | Fail | Fail | Fail | Fail | 11.6 |
| White text on indigo-800 | 10.05:1 | Pass | Pass | Pass | Pass | −96.6 |
| Indigo-800 text on white | 10.05:1 | Pass | Pass | Pass | Pass | 92.4 |
| Indigo-800 text on black | 2.08:1 | Fail | Fail | Fail | Fail | −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)
- 5%
#4135b0 - 15%
#554ab8 - 25%
#695fc1 - 35%
#7d75c9 - 45%
#918ad1 - 55%
#a59fda - 65%
#b9b4e2 - 75%
#cdcaea - 85%
#e1dff3 - 95%
#f5f4fb
Shades (mixed with black)
- 5%
#3428a3 - 15%
#2f2492 - 25%
#292081 - 35%
#241b70 - 45%
#1e175f - 55%
#19134d - 65%
#130f3c - 75%
#0e0b2b - 85%
#08061a - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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
| Color | HEX | ΔE OK |
|---|---|---|
| darkslateblue | #483d8b | 7.6 |
| mediumblue | #0000cd | 8.9 |
| rebeccapurple | #663399 | 9.7 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| blue-800 | #193cb8 | 4.8 |
| violet-900 | #4d179a | 5.8 |
| blue-900 | #1c398e | 6.3 |
Code snippets
<div class="bg-indigo-800 text-white">...</div>
<p class="text-indigo-800 border-indigo-800">...</p>.element {
color: var(--color-indigo-800);
background-color: oklch(39.8% 0.195 277.366);
border-color: #372aac;
outline-color: rgb(55 42 172);
}import SwiftUI
extension Color {
static let indigo800 = Color(red: 0.216, green: 0.165, blue: 0.675)
}import androidx.compose.ui.graphics.Color
val Indigo800 = Color(0xFF372AAC)import 'package:flutter/material.dart';
const indigo800 = Color(0xFF372AAC);<!-- 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.