Skip to content

Tailwind CSS v4 default palette

Tailwind indigo-600: #4F39F6

In Tailwind CSS v4, indigo-600 is defined as --color-indigo-600: oklch(51.1% 0.262 276.966), which is #4F39F6 in hex and rgb(79, 57, 246): a medium-dark, vivid blue-violet. In Tailwind v3, indigo-600 was #4F46E5.

indigo-600#4F39F6

In OKLCH, indigo-600 has a lightness of 51.1%, chroma 0.262 and hue 277.0°. It is the most saturated shade of the indigo scale.

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

In v3, indigo-600 was #4F46E5. The v4 value is ΔE OK 3.2 away; 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-600

Color codes for indigo-600
Tailwind v4 token--color-indigo-600
OKLCH (source value)oklch(51.1% 0.262 276.966)
HEX#4F39F6
RGBrgb(79, 57, 246)
HSLhsl(247, 91%, 59%)
HWBhwb(247 22% 4%)
CMYK (naive, no ICC profile)cmyk(68%, 77%, 0%, 4%)
Decimal5,192,182
Tailwind v3 hex#4F46E5
Utility classesbg-indigo-600, text-indigo-600, border-indigo-600

Tailwind indigo scale

Contrast and accessibility

On indigo-600, white text has a contrast ratio of 6.46:1 and passes AA for normal text; black text reaches 3.24: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-6003.24:1FailPassFailFail23.2
White text on indigo-6006.46:1PassPassFailPass−86.0
Indigo-600 text on white6.46:1PassPassFailPass80.9
Indigo-600 text on black3.24:1FailPassFailFail−21.0

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #5843f6
  2. 15%
    #6957f7
  3. 25%
    #7b6bf8
  4. 35%
    #8d7ef9
  5. 45%
    #9e92fa
  6. 55%
    #b0a6fb
  7. 65%
    #c1bafc
  8. 75%
    #d3cefd
  9. 85%
    #e5e1fe
  10. 95%
    #f6f5ff

Shades (mixed with black)

  1. 5%
    #4b36ea
  2. 15%
    #4330d1
  3. 25%
    #3b2bb9
  4. 35%
    #3325a0
  5. 45%
    #2b1f87
  6. 55%
    #241a6f
  7. 65%
    #1c1456
  8. 75%
    #140e3e
  9. 85%
    #0c0925
  10. 95%
    #04030c

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, indigo-600's complementary color is #7B6500 (close to darkolivegreen), its analogous colors are #0069BF and #8E01D7, and its triadic partners are #BE1B00 and #007E41. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#7b6500
Analogous−30°, +30°#0069bf#8e01d7
Triadic+120°, +240°#be1b00#007e41
Split-complementary+150°, +210°#975300#4e7500

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-600 is a cool color: its hue is 247° 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
royalblue#4169e19.7
blue#0000ff10.1
slateblue#6a5acd10.2

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
indigo-700#432dd75.8
blue-700#1447e66.3
blue-600#155dfc7.3

Code snippets

Tailwind CSS
<div class="bg-indigo-600 text-white">...</div>
<p class="text-indigo-600 border-indigo-600">...</p>
CSS
.element {
  color: var(--color-indigo-600);
  background-color: oklch(51.1% 0.262 276.966);
  border-color: #4f39f6;
  outline-color: rgb(79 57 246);
}
SwiftUI
import SwiftUI

extension Color {
  static let indigo600 = Color(red: 0.310, green: 0.224, blue: 0.965)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const indigo600 = Color(0xFF4F39F6);
Android XML
<!-- res/values/colors.xml -->
<color name="indigo_600">#4F39F6</color>

Frequently asked questions

What is the hex code for Tailwind indigo-600?
In Tailwind CSS v4, indigo-600 is oklch(51.1% 0.262 276.966), which converts to #4F39F6 (rgb(79, 57, 246)) in sRGB. In Tailwind v3 the same name was #4F46E5.
What is the difference between indigo-600 in Tailwind v3 and v4?
v3 used the hex #4F46E5; v4 redefined the palette in OKLCH as oklch(51.1% 0.262 276.966). In v3, indigo-600 was #4F46E5. The v4 value is ΔE OK 3.2 away; v4 is more saturated.
How do I use indigo-600 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-indigo-600). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on indigo-600?
White text on indigo-600 has a contrast ratio of 6.46:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 3.24:1 and passes AA only for large text (24 px, or 18.66 px bold, and up). In APCA terms that is Lc −86.0 for white and Lc 23.2 for black.
Which CSS named color is closest to indigo-600?
The closest is royalblue (#4169E1) at ΔE OK 9.7, followed by blue and slateblue.

Last reviewed by Arielton Oberek.