Skip to content

Tailwind CSS v4 default palette

Tailwind indigo-50: #EEF2FF

In Tailwind CSS v4, indigo-50 is defined as --color-indigo-50: oklch(96.2% 0.018 272.314), which is #EEF2FF in hex and rgb(238, 242, 255): an off-white with a blue tint. In Tailwind v3, indigo-50 was #EEF2FF.

indigo-50#EEF2FF

In OKLCH, indigo-50 has a lightness of 96.2%, chroma 0.018 and hue 272.3°.

This OKLCH value lies outside sRGB. The hex #EEF2FF is the sRGB fallback from the CSS Color 4 gamut mapping algorithm; on Display P3 screens browsers show a more saturated color, close to color(display-p3 0.9362 0.9486 0.9956).

In v3, indigo-50 was #EEF2FF. The v4 value is ΔE OK 0.0 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-50

Color codes for indigo-50
Tailwind v4 token--color-indigo-50
OKLCH (source value)oklch(96.2% 0.018 272.314)
HEX#EEF2FF
RGBrgb(238, 242, 255)
HSLhsl(226, 100%, 97%)
HWBhwb(226 93% 0%)
CMYK (naive, no ICC profile)cmyk(7%, 5%, 0%, 0%)
Decimal15,659,775
Display P3color(display-p3 0.9362 0.9486 0.9956)
Tailwind v3 hex#EEF2FF
Utility classesbg-indigo-50, text-indigo-50, border-indigo-50

Tailwind indigo scale

Contrast and accessibility

On indigo-50, black text has a contrast ratio of 18.78:1 and passes AAA at any text size; white text reaches 1.11: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-5018.78:1PassPassPassPass98.4
White text on indigo-501.11:1FailFailFailFail0.0
Indigo-50 text on white1.11:1FailFailFailFail0.0
Indigo-50 text on black18.78:1PassPassPassPass−99.4

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #eff3ff
  2. 15%
    #f1f4ff
  3. 25%
    #f2f5ff
  4. 35%
    #f4f7ff
  5. 45%
    #f6f8ff
  6. 55%
    #f7f9ff
  7. 65%
    #f9faff
  8. 75%
    #fbfcff
  9. 85%
    #fcfdff
  10. 95%
    #fefeff

Shades (mixed with black)

  1. 5%
    #e2e6f2
  2. 15%
    #caced9
  3. 25%
    #b3b6bf
  4. 35%
    #9b9da6
  5. 45%
    #83858c
  6. 55%
    #6b6d73
  7. 65%
    #535559
  8. 75%
    #3c3d40
  9. 85%
    #242426
  10. 95%
    #0c0c0d

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, indigo-50's complementary color is #F7F2E5 (close to linen), its analogous colors are #E8F4FE and #F5F0FD, and its triadic partners are #FEEEEB and #EAF6ED. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#f7f2e5
Analogous−30°, +30°#e8f4fe#f5f0fd
Triadic+120°, +240°#feeeeb#eaf6ed
Split-complementary+150°, +210°#fcf0e6#f0f5e7

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-50 is close to neutral: its OKLCH chroma is only 0.018, so its temperature comes from context. The faint 226° 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

Nearest CSS named colors
ColorHEXΔE OK
aliceblue#f0f8ff1.6
whitesmoke#f5f5f52.0
ghostwhite#f8f8ff2.1

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
violet-50#f5f3ff1.0
blue-50#eff6ff1.0
slate-100#f1f5f91.3

Code snippets

Tailwind CSS
<div class="bg-indigo-50 text-black">...</div>
<p class="text-indigo-50 border-indigo-50">...</p>
CSS
.element {
  color: var(--color-indigo-50);
  background-color: oklch(96.2% 0.018 272.314);
  border-color: #eef2ff;
  outline-color: rgb(238 242 255);
}
SwiftUI
import SwiftUI

extension Color {
  static let indigo50 = Color(red: 0.933, green: 0.949, blue: 1.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const indigo50 = Color(0xFFEEF2FF);
Android XML
<!-- res/values/colors.xml -->
<color name="indigo_50">#EEF2FF</color>

Frequently asked questions

What is the hex code for Tailwind indigo-50?
In Tailwind CSS v4, indigo-50 is oklch(96.2% 0.018 272.314), which converts to #EEF2FF (rgb(238, 242, 255)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #EEF2FF.
What is the difference between indigo-50 in Tailwind v3 and v4?
v3 used the hex #EEF2FF; v4 redefined the palette in OKLCH as oklch(96.2% 0.018 272.314). In v3, indigo-50 was #EEF2FF. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
How do I use indigo-50 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-indigo-50). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on indigo-50?
White text on indigo-50 has a contrast ratio of 1.11:1, which fails AA even for large text under WCAG 2.2. Black text reaches 18.78:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 98.4 for black.
Which CSS named color is closest to indigo-50?
The closest is aliceblue (#F0F8FF) at ΔE OK 1.6, followed by whitesmoke and ghostwhite.

Last reviewed by Arielton Oberek.