Tailwind CSS v4 default palette
Tailwind blue-600: #155DFC
In Tailwind CSS v4, blue-600 is defined as --color-blue-600: oklch(54.6% 0.245 262.881), which is #155DFC in hex and rgb(21, 93, 252): a medium-dark, vivid blue. In Tailwind v3, blue-600 was #2563EB.
In OKLCH, blue-600 has a lightness of 54.6%, chroma 0.245 and hue 262.9°. It is the most saturated shade of the blue scale.
The value fits inside sRGB, so the hex #155DFC represents it without loss on any screen.
In v3, blue-600 was #2563EB. The v4 value is ΔE OK 3.0 away; v4 is more saturated.
Tailwind blue is the default for links, focus rings and primary buttons in many projects built on the framework.
Color codes for blue-600
| Tailwind v4 token | --color-blue-600 |
|---|---|
| OKLCH (source value) | oklch(54.6% 0.245 262.881) |
| HEX | #155DFC |
| RGB | rgb(21, 93, 252) |
| HSL | hsl(221, 97%, 54%) |
| HWB | hwb(221 8% 1%) |
| CMYK (naive, no ICC profile) | cmyk(92%, 63%, 0%, 1%) |
| Decimal | 1,400,316 |
| Tailwind v3 hex | #2563EB |
| Utility classes | bg-blue-600, text-blue-600, border-blue-600 |
Tailwind blue scale
Contrast and accessibility
On blue-600, white text has a contrast ratio of 5.24:1 and passes AA for normal text; black text reaches 4.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 blue-600 | 4.00:1 | Fail | Pass | Fail | Fail | 29.1 |
| White text on blue-600 | 5.24:1 | Pass | Pass | Fail | Pass | −80.4 |
| Blue-600 text on white | 5.24:1 | Pass | Pass | Fail | Pass | 75.0 |
| Blue-600 text on black | 4.00:1 | Fail | Pass | Fail | Fail | −26.7 |
Tints and shades
Each step mixes var(--color-blue-600) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-blue-600), white 25%) in CSS.
Tints (mixed with white)
- 5%
#2165fc - 15%
#3875fc - 25%
#5086fd - 35%
#6796fd - 45%
#7ea6fd - 55%
#96b6fe - 65%
#adc6fe - 75%
#c5d7fe - 85%
#dce7ff - 95%
#f3f7ff
Shades (mixed with black)
- 5%
#1458ef - 15%
#124fd6 - 25%
#1046bd - 35%
#0e3ca4 - 45%
#0c338b - 55%
#092a71 - 65%
#072158 - 75%
#05173f - 85%
#030e26 - 95%
#01050d
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, blue-600's complementary color is #956700 (close to sienna), its analogous colors are #007BB2 and #7D3DEE, and its triadic partners are #D90022 and #008B00. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #956700 |
| Analogous | −30°, +30° | #007bb2#7d3dee |
| Triadic | +120°, +240° | #d90022#008b00 |
| Split-complementary | +150°, +210° | #b54d00#727700 |
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 blue-600 is a cool color: its hue is 221° 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 |
|---|---|---|
| royalblue | #4169e1 | 6.0 |
| slateblue | #6a5acd | 10.9 |
| mediumslateblue | #7b68ee | 11.5 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| blue-700 | #1447e6 | 5.8 |
| indigo-500 | #615fff | 7.2 |
| indigo-600 | #4f39f6 | 7.3 |
Code snippets
<div class="bg-blue-600 text-white">...</div>
<p class="text-blue-600 border-blue-600">...</p>.element {
color: var(--color-blue-600);
background-color: oklch(54.6% 0.245 262.881);
border-color: #155dfc;
outline-color: rgb(21 93 252);
}import SwiftUI
extension Color {
static let blue600 = Color(red: 0.082, green: 0.365, blue: 0.988)
}import androidx.compose.ui.graphics.Color
val Blue600 = Color(0xFF155DFC)import 'package:flutter/material.dart';
const blue600 = Color(0xFF155DFC);<!-- res/values/colors.xml -->
<color name="blue_600">#155DFC</color>Frequently asked questions
- What is the hex code for Tailwind blue-600?
- In Tailwind CSS v4, blue-600 is oklch(54.6% 0.245 262.881), which converts to #155DFC (rgb(21, 93, 252)) in sRGB. In Tailwind v3 the same name was #2563EB.
- What is the difference between blue-600 in Tailwind v3 and v4?
- v3 used the hex #2563EB; v4 redefined the palette in OKLCH as oklch(54.6% 0.245 262.881). In v3, blue-600 was #2563EB. The v4 value is ΔE OK 3.0 away; v4 is more saturated.
- How do I use blue-600 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-blue-600). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on blue-600?
- White text on blue-600 has a contrast ratio of 5.24:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 4.00:1 and passes AA only for large text (24 px, or 18.66 px bold, and up). In APCA terms that is Lc −80.4 for white and Lc 29.1 for black.
- Which CSS named color is closest to blue-600?
- The closest is royalblue (#4169E1) at ΔE OK 6.0, followed by slateblue and mediumslateblue.
Last reviewed by Arielton Oberek.