Tailwind CSS v4 default palette
Tailwind blue-800: #193CB8
In Tailwind CSS v4, blue-800 is defined as --color-blue-800: oklch(42.4% 0.199 265.638), which is #193CB8 in hex and rgb(25, 60, 184): a dark, vivid blue. In Tailwind v3, blue-800 was #1E40AF.
In OKLCH, blue-800 has a lightness of 42.4%, chroma 0.199 and hue 265.6°.
The value fits inside sRGB, so the hex #193CB8 represents it without loss on any screen.
In v3, blue-800 was #1E40AF. The v4 value is ΔE OK 1.8 away, below the point where most people can tell them apart; 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-800
| Tailwind v4 token | --color-blue-800 |
|---|---|
| OKLCH (source value) | oklch(42.4% 0.199 265.638) |
| HEX | #193CB8 |
| RGB | rgb(25, 60, 184) |
| HSL | hsl(227, 76%, 41%) |
| HWB | hwb(227 10% 28%) |
| CMYK (naive, no ICC profile) | cmyk(86%, 67%, 0%, 28%) |
| Decimal | 1,653,944 |
| Tailwind v3 hex | #1E40AF |
| Utility classes | bg-blue-800, text-blue-800, border-blue-800 |
Tailwind blue scale
Contrast and accessibility
On blue-800, white text has a contrast ratio of 8.82:1 and passes AAA at any text size; black text reaches 2.37: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-800 | 2.37:1 | Fail | Fail | Fail | Fail | 14.7 |
| White text on blue-800 | 8.82:1 | Pass | Pass | Pass | Pass | −93.8 |
| Blue-800 text on white | 8.82:1 | Pass | Pass | Pass | Pass | 89.3 |
| Blue-800 text on black | 2.37:1 | Fail | Fail | Fail | Fail | −13.0 |
Tints and shades
Each step mixes var(--color-blue-800) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-blue-800), white 25%) in CSS.
Tints (mixed with white)
- 5%
#2546bc - 15%
#3c59c3 - 25%
#536dca - 35%
#6a80d1 - 45%
#8194d8 - 55%
#98a7df - 65%
#afbbe6 - 75%
#c6ceed - 85%
#dde2f4 - 95%
#f4f5fb
Shades (mixed with black)
- 5%
#1839af - 15%
#15339c - 25%
#132d8a - 35%
#102778 - 45%
#0e2165 - 55%
#0b1b53 - 65%
#091540 - 75%
#060f2e - 85%
#04091c - 95%
#010309
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, blue-800's complementary color is #684800 (close to saddlebrown), its analogous colors are #005584 and #5C22AB, and its triadic partners are #9D0004 and #006300. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #684800 |
| Analogous | −30°, +30° | #005584#5c22ab |
| Triadic | +120°, +240° | #9d0004#006300 |
| Split-complementary | +150°, +210° | #803500#4c5500 |
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-800 is a cool color: its hue is 227° 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 |
|---|---|---|
| mediumblue | #0000cd | 7.8 |
| darkslateblue | #483d8b | 9.3 |
| blue | #0000ff | 11.8 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| indigo-800 | #372aac | 4.8 |
| indigo-700 | #432dd7 | 6.8 |
| blue-900 | #1c398e | 7.0 |
Code snippets
<div class="bg-blue-800 text-white">...</div>
<p class="text-blue-800 border-blue-800">...</p>.element {
color: var(--color-blue-800);
background-color: oklch(42.4% 0.199 265.638);
border-color: #193cb8;
outline-color: rgb(25 60 184);
}import SwiftUI
extension Color {
static let blue800 = Color(red: 0.098, green: 0.235, blue: 0.722)
}import androidx.compose.ui.graphics.Color
val Blue800 = Color(0xFF193CB8)import 'package:flutter/material.dart';
const blue800 = Color(0xFF193CB8);<!-- res/values/colors.xml -->
<color name="blue_800">#193CB8</color>Frequently asked questions
- What is the hex code for Tailwind blue-800?
- In Tailwind CSS v4, blue-800 is oklch(42.4% 0.199 265.638), which converts to #193CB8 (rgb(25, 60, 184)) in sRGB. In Tailwind v3 the same name was #1E40AF.
- What is the difference between blue-800 in Tailwind v3 and v4?
- v3 used the hex #1E40AF; v4 redefined the palette in OKLCH as oklch(42.4% 0.199 265.638). In v3, blue-800 was #1E40AF. 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 blue-800 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-blue-800). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on blue-800?
- White text on blue-800 has a contrast ratio of 8.82:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.37:1 and fails AA even for large text. In APCA terms that is Lc −93.8 for white and Lc 14.7 for black.
- Which CSS named color is closest to blue-800?
- The closest is mediumblue (#0000CD) at ΔE OK 7.8, followed by darkslateblue and blue.
Last reviewed by Arielton Oberek.