Tailwind CSS v4 default palette
Tailwind indigo-300: #A3B3FF
In Tailwind CSS v4, indigo-300 is defined as --color-indigo-300: oklch(78.5% 0.115 274.713), which is #A3B3FF in hex and rgb(163, 179, 255): a light, moderately saturated blue. In Tailwind v3, indigo-300 was #A5B4FC.
In OKLCH, indigo-300 has a lightness of 78.5%, chroma 0.115 and hue 274.7°.
This OKLCH value lies outside sRGB. The hex #A3B3FF 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.6509 0.7002 0.9908).
In v3, indigo-300 was #A5B4FC. The v4 value is ΔE OK 1.1 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-300
| Tailwind v4 token | --color-indigo-300 |
|---|---|
| OKLCH (source value) | oklch(78.5% 0.115 274.713) |
| HEX | #A3B3FF |
| RGB | rgb(163, 179, 255) |
| HSL | hsl(230, 100%, 82%) |
| HWB | hwb(230 64% 0%) |
| CMYK (naive, no ICC profile) | cmyk(36%, 30%, 0%, 0%) |
| Decimal | 10,728,447 |
| Display P3 | color(display-p3 0.6509 0.7002 0.9908) |
| Tailwind v3 hex | #A5B4FC |
| Utility classes | bg-indigo-300, text-indigo-300, border-indigo-300 |
Tailwind indigo scale
Contrast and accessibility
On indigo-300, black text has a contrast ratio of 10.44:1 and passes AAA at any text size; white text reaches 2.00: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-300 | 10.44:1 | Pass | Pass | Pass | Pass | 65.0 |
| White text on indigo-300 | 2.00:1 | Fail | Fail | Fail | Fail | −43.4 |
| Indigo-300 text on white | 2.00:1 | Fail | Fail | Fail | Fail | 38.9 |
| Indigo-300 text on black | 10.44:1 | Pass | Pass | Pass | Pass | −63.4 |
Tints and shades
Each step mixes var(--color-indigo-300) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-indigo-300), white 25%) in CSS.
Tints (mixed with white)
- 5%
#a8b7ff - 15%
#b1beff - 25%
#bac6ff - 35%
#c3ceff - 45%
#ccd5ff - 55%
#d6ddff - 65%
#dfe4ff - 75%
#e8ecff - 85%
#f1f4ff - 95%
#fafbff
Shades (mixed with black)
- 5%
#9baaf2 - 15%
#8b98d9 - 25%
#7a86bf - 35%
#6a74a6 - 45%
#5a628c - 55%
#495173 - 65%
#393f59 - 75%
#292d40 - 85%
#181b26 - 95%
#08090d
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, indigo-300's complementary color is #D0B85D (close to darkkhaki), its analogous colors are #76C1FE and #CAA6F4, and its triadic partners are #F99E87 and #79CF98. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #d0b85d |
| Analogous | −30°, +30° | #76c1fe#caa6f4 |
| Triadic | +120°, +240° | #f99e87#79cf98 |
| Split-complementary | +150°, +210° | #eca966#a8c672 |
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-300 is a cool color: its hue is 230° 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 |
|---|---|---|
| lightskyblue | #87cefa | 7.9 |
| lightsteelblue | #b0c4de | 8.1 |
| skyblue | #87ceeb | 9.2 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| violet-300 | #c4b4ff | 4.5 |
| blue-300 | #8ec5ff | 5.1 |
| purple-300 | #dab2ff | 7.7 |
Code snippets
<div class="bg-indigo-300 text-black">...</div>
<p class="text-indigo-300 border-indigo-300">...</p>.element {
color: var(--color-indigo-300);
background-color: oklch(78.5% 0.115 274.713);
border-color: #a3b3ff;
outline-color: rgb(163 179 255);
}import SwiftUI
extension Color {
static let indigo300 = Color(red: 0.639, green: 0.702, blue: 1.000)
}import androidx.compose.ui.graphics.Color
val Indigo300 = Color(0xFFA3B3FF)import 'package:flutter/material.dart';
const indigo300 = Color(0xFFA3B3FF);<!-- res/values/colors.xml -->
<color name="indigo_300">#A3B3FF</color>Frequently asked questions
- What is the hex code for Tailwind indigo-300?
- In Tailwind CSS v4, indigo-300 is oklch(78.5% 0.115 274.713), which converts to #A3B3FF (rgb(163, 179, 255)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #A5B4FC.
- What is the difference between indigo-300 in Tailwind v3 and v4?
- v3 used the hex #A5B4FC; v4 redefined the palette in OKLCH as oklch(78.5% 0.115 274.713). In v3, indigo-300 was #A5B4FC. The v4 value is ΔE OK 1.1 away, below the point where most people can tell them apart; v4 is more saturated.
- How do I use indigo-300 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-indigo-300). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on indigo-300?
- White text on indigo-300 has a contrast ratio of 2.00:1, which fails AA even for large text under WCAG 2.2. Black text reaches 10.44:1 and passes both AA and AAA. In APCA terms that is Lc −43.4 for white and Lc 65.0 for black.
- Which CSS named color is closest to indigo-300?
- The closest is lightskyblue (#87CEFA) at ΔE OK 7.9, followed by lightsteelblue and skyblue.
Last reviewed by Arielton Oberek.