Tailwind CSS v4 default palette
Tailwind blue-700: #1447E6
In Tailwind CSS v4, blue-700 is defined as --color-blue-700: oklch(48.8% 0.243 264.376), which is #1447E6 in hex and rgb(20, 71, 230): a medium-dark, vivid blue. In Tailwind v3, blue-700 was #1D4ED8.
In OKLCH, blue-700 has a lightness of 48.8%, chroma 0.243 and hue 264.4°.
The value fits inside sRGB, so the hex #1447E6 represents it without loss on any screen.
In v3, blue-700 was #1D4ED8. The v4 value is ΔE OK 2.6 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-700
| Tailwind v4 token | --color-blue-700 |
|---|---|
| OKLCH (source value) | oklch(48.8% 0.243 264.376) |
| HEX | #1447E6 |
| RGB | rgb(20, 71, 230) |
| HSL | hsl(225, 84%, 49%) |
| HWB | hwb(225 8% 10%) |
| CMYK (naive, no ICC profile) | cmyk(91%, 69%, 0%, 10%) |
| Decimal | 1,329,126 |
| Tailwind v3 hex | #1D4ED8 |
| Utility classes | bg-blue-700, text-blue-700, border-blue-700 |
Tailwind blue scale
Contrast and accessibility
On blue-700, white text has a contrast ratio of 6.83:1 and passes AA for normal text; black text reaches 3.07: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-700 | 3.07:1 | Fail | Pass | Fail | Fail | 21.7 |
| White text on blue-700 | 6.83:1 | Pass | Pass | Fail | Pass | −87.5 |
| Blue-700 text on white | 6.83:1 | Pass | Pass | Fail | Pass | 82.4 |
| Blue-700 text on black | 3.07:1 | Fail | Pass | Fail | Fail | −19.5 |
Tints and shades
Each step mixes var(--color-blue-700) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-blue-700), white 25%) in CSS.
Tints (mixed with white)
- 5%
#2050e7 - 15%
#3763ea - 25%
#4f75ec - 35%
#6687ef - 45%
#7e9af1 - 55%
#95acf4 - 65%
#adbff6 - 75%
#c4d1f9 - 85%
#dce3fb - 95%
#f3f6fe
Shades (mixed with black)
- 5%
#1343db - 15%
#113cc4 - 25%
#0f35ad - 35%
#0d2e96 - 45%
#0b277f - 55%
#092067 - 65%
#071951 - 75%
#05123a - 85%
#030b23 - 95%
#01040c
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, blue-700's complementary color is #7F5800 (close to saddlebrown), its analogous colors are #00699C and #7023D7, and its triadic partners are #BC0013 and #007800. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #7f5800 |
| Analogous | −30°, +30° | #00699c#7023d7 |
| Triadic | +120°, +240° | #bc0013#007800 |
| Split-complementary | +150°, +210° | #9b4200#5f6700 |
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-700 is a cool color: its hue is 225° 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 |
|---|---|---|
| blue | #0000ff | 7.9 |
| royalblue | #4169e1 | 9.1 |
| mediumblue | #0000cd | 10.7 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| blue-600 | #155dfc | 5.8 |
| indigo-700 | #432dd7 | 6.2 |
| indigo-600 | #4f39f6 | 6.3 |
Code snippets
<div class="bg-blue-700 text-white">...</div>
<p class="text-blue-700 border-blue-700">...</p>.element {
color: var(--color-blue-700);
background-color: oklch(48.8% 0.243 264.376);
border-color: #1447e6;
outline-color: rgb(20 71 230);
}import SwiftUI
extension Color {
static let blue700 = Color(red: 0.078, green: 0.278, blue: 0.902)
}import androidx.compose.ui.graphics.Color
val Blue700 = Color(0xFF1447E6)import 'package:flutter/material.dart';
const blue700 = Color(0xFF1447E6);<!-- res/values/colors.xml -->
<color name="blue_700">#1447E6</color>Frequently asked questions
- What is the hex code for Tailwind blue-700?
- In Tailwind CSS v4, blue-700 is oklch(48.8% 0.243 264.376), which converts to #1447E6 (rgb(20, 71, 230)) in sRGB. In Tailwind v3 the same name was #1D4ED8.
- What is the difference between blue-700 in Tailwind v3 and v4?
- v3 used the hex #1D4ED8; v4 redefined the palette in OKLCH as oklch(48.8% 0.243 264.376). In v3, blue-700 was #1D4ED8. The v4 value is ΔE OK 2.6 away; v4 is more saturated.
- How do I use blue-700 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-blue-700). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on blue-700?
- White text on blue-700 has a contrast ratio of 6.83:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 3.07:1 and passes AA only for large text (24 px, or 18.66 px bold, and up). In APCA terms that is Lc −87.5 for white and Lc 21.7 for black.
- Which CSS named color is closest to blue-700?
- The closest is blue (#0000FF) at ΔE OK 7.9, followed by royalblue and mediumblue.
Last reviewed by Arielton Oberek.