Tailwind CSS v3.4 color family
Tailwind blue 11 shades, 50 to 950
Blue is one of the 22 color families in Tailwind CSS v3.4, with eleven shades from 50 to 950. Its 500 shade, #3B82F6, sits at OKLCH hue 259.8°. Lightness runs from 0.970 at 50 to 0.282 at 950.
- 500 shade
- #3B82F6
- OKLCH hue at 500
- 259.8°
- Body text on white
- 600 to 950
- Body text on black
- 50 to 500
Tailwind CSS 4.3.3
blue: current colors
11 shades with exact official OKLCH values. Use bg-blue-500, text-blue-500 or border-blue-500 in Tailwind. Wide-gamut colors are preserved; these are not the v3 hex values.
| Color | Exact OKLCH | CSS variable |
|---|---|---|
| blue-50 | oklch(97% 0.014 254.604) | --color-blue-50 |
| blue-100 | oklch(93.2% 0.032 255.585) | --color-blue-100 |
| blue-200 | oklch(88.2% 0.059 254.128) | --color-blue-200 |
| blue-300 | oklch(80.9% 0.105 251.813) | --color-blue-300 |
| blue-400 | oklch(70.7% 0.165 254.624) | --color-blue-400 |
| blue-500 | oklch(62.3% 0.214 259.815) | --color-blue-500 |
| blue-600 | oklch(54.6% 0.245 262.881) | --color-blue-600 |
| blue-700 | oklch(48.8% 0.243 264.376) | --color-blue-700 |
| blue-800 | oklch(42.4% 0.199 265.638) | --color-blue-800 |
| blue-900 | oklch(37.9% 0.146 265.522) | --color-blue-900 |
| blue-950 | oklch(28.2% 0.091 267.935) | --color-blue-950 |
Source: Tailwind CSS 4.3.3 theme.css (MIT). Values are pinned to this release. Older v3 reference values below are kept separately for existing projects.
Scale
Every shade, 50 to 950
Each shade has a page of its own. Under each, white and black text on it; a bold figure passes 4.5:1.
Values
Hex, RGB and OKLCH values
The Tailwind CSS v3.4 values, with the contrast of white and black text on each shade.
| Shade | HEX | RGB | OKLCH | White text | Black text |
|---|---|---|---|---|---|
| blue-50 | #EFF6FF | rgb(239, 246, 255) | oklch(0.970 0.014 254.6) | 1.08 | 19.29 |
| blue-100 | #DBEAFE | rgb(219, 234, 254) | oklch(0.932 0.032 255.6) | 1.22 | 17.21 |
| blue-200 | #BFDBFE | rgb(191, 219, 254) | oklch(0.882 0.057 254.1) | 1.42 | 14.77 |
| blue-300 | #93C5FD | rgb(147, 197, 253) | oklch(0.809 0.096 251.8) | 1.80 | 11.64 |
| blue-400 | #60A5FA | rgb(96, 165, 250) | oklch(0.714 0.143 254.6) | 2.54 | 8.25 |
| blue-500 | #3B82F6 | rgb(59, 130, 246) | oklch(0.623 0.188 259.8) | 3.67 | 5.70 |
| blue-600 | #2563EB | rgb(37, 99, 235) | oklch(0.546 0.215 262.9) | 5.16 | 4.06 |
| blue-700 | #1D4ED8 | rgb(29, 78, 216) | oklch(0.488 0.217 264.4) | 6.70 | 3.13 |
| blue-800 | #1E40AF | rgb(30, 64, 175) | oklch(0.424 0.181 265.6) | 8.72 | 2.40 |
| blue-900 | #1E3A8A | rgb(30, 58, 138) | oklch(0.379 0.138 265.5) | 10.35 | 2.02 |
| blue-950 | #172554 | rgb(23, 37, 84) | oklch(0.282 0.087 267.9) | 14.69 | 1.42 |
Legibility
Which shades pass on each other
Every shade as text on every other shade. 34 of 110 pairings pass 4.5:1 for body text, and 16 more pass 3:1 for large text.
| Text shade, then background shade | 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 50 | same shade | 1.12 | 1.30 | 1.65 | 2.33 | 3.37 | 4.74 | 6.15 | 8.01 | 9.51 | 13.50 |
| 100 | 1.12 | same shade | 1.16 | 1.47 | 2.08 | 3.01 | 4.23 | 5.49 | 7.14 | 8.48 | 12.04 |
| 200 | 1.30 | 1.16 | same shade | 1.26 | 1.78 | 2.58 | 3.63 | 4.71 | 6.13 | 7.28 | 10.34 |
| 300 | 1.65 | 1.47 | 1.26 | same shade | 1.40 | 2.03 | 2.86 | 3.71 | 4.83 | 5.74 | 8.14 |
| 400 | 2.33 | 2.08 | 1.78 | 1.40 | same shade | 1.44 | 2.03 | 2.63 | 3.43 | 4.07 | 5.77 |
| 500 | 3.37 | 3.01 | 2.58 | 2.03 | 1.44 | same shade | 1.40 | 1.82 | 2.37 | 2.81 | 3.99 |
| 600 | 4.74 | 4.23 | 3.63 | 2.86 | 2.03 | 1.40 | same shade | 1.29 | 1.68 | 2.00 | 2.84 |
| 700 | 6.15 | 5.49 | 4.71 | 3.71 | 2.63 | 1.82 | 1.29 | same shade | 1.30 | 1.54 | 2.19 |
| 800 | 8.01 | 7.14 | 6.13 | 4.83 | 3.43 | 2.37 | 1.68 | 1.30 | same shade | 1.18 | 1.68 |
| 900 | 9.51 | 8.48 | 7.28 | 5.74 | 4.07 | 2.81 | 2.00 | 1.54 | 1.18 | same shade | 1.41 |
| 950 | 13.50 | 12.04 | 10.34 | 8.14 | 5.77 | 3.99 | 2.84 | 2.19 | 1.68 | 1.41 | same shade |
Rows are the text shade, columns the background. A bold figure on a tinted cell passes 4.5:1 for body text; a plain one passes 3:1 for large text only; a faint one fails.
Color vision
The scale with color blindness
The same eleven shades as seen with each color vision deficiency. Lightness keeps a ramp in order even where its hue collapses.
Simulated with Machado et al. (2009) at full severity, in linear light.
What each type seesTypical vision
Closest neighbors: 50 and 100, ΔE2000 5.3
Protanopia
Closest neighbors: 50 and 100, ΔE2000 5.4
Deuteranopia
Closest neighbors: 800 and 900, ΔE2000 5.5
Tritanopia
Closest neighbors: 800 and 900, ΔE2000 5.3
Achromatopsia
Closest neighbors: 50 and 100, ΔE2000 2.7
Code
Design tokens
The whole family in six formats, ready to paste.
:root {
--color-blue-50: #eff6ff;
--color-blue-100: #dbeafe;
--color-blue-200: #bfdbfe;
--color-blue-300: #93c5fd;
--color-blue-400: #60a5fa;
--color-blue-500: #3b82f6;
--color-blue-600: #2563eb;
--color-blue-700: #1d4ed8;
--color-blue-800: #1e40af;
--color-blue-900: #1e3a8a;
--color-blue-950: #172554;
}
// tailwind.config.js — blue is built in; this pins the v3.4 values.
module.exports = {
theme: {
extend: {
colors: {
blue: {
50: '#eff6ff',
100: '#dbeafe',
200: '#bfdbfe',
300: '#93c5fd',
400: '#60a5fa',
500: '#3b82f6',
600: '#2563eb',
700: '#1d4ed8',
800: '#1e40af',
900: '#1e3a8a',
950: '#172554',
},
},
},
},
};
/* app.css — Tailwind CSS v4 */
@import "tailwindcss";
@theme {
/* v4 has its own blue; these pin the v3 values. */
--color-blue-50: oklch(0.970 0.014 254.6);
--color-blue-100: oklch(0.932 0.032 255.6);
--color-blue-200: oklch(0.882 0.057 254.1);
--color-blue-300: oklch(0.809 0.096 251.8);
--color-blue-400: oklch(0.714 0.143 254.6);
--color-blue-500: oklch(0.623 0.188 259.8);
--color-blue-600: oklch(0.546 0.215 262.9);
--color-blue-700: oklch(0.488 0.217 264.4);
--color-blue-800: oklch(0.424 0.181 265.6);
--color-blue-900: oklch(0.379 0.138 265.5);
--color-blue-950: oklch(0.282 0.087 267.9);
}
{
"color": {
"blue": {
"50": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.9373, 0.9647, 1],
"hex": "#eff6ff"
}
},
"100": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.8588, 0.9176, 0.9961],
"hex": "#dbeafe"
}
},
"200": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.749, 0.8588, 0.9961],
"hex": "#bfdbfe"
}
},
"300": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.5765, 0.7725, 0.9922],
"hex": "#93c5fd"
}
},
"400": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.3765, 0.6471, 0.9804],
"hex": "#60a5fa"
}
},
"500": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.2314, 0.5098, 0.9647],
"hex": "#3b82f6"
}
},
"600": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.1451, 0.3882, 0.9216],
"hex": "#2563eb"
}
},
"700": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.1137, 0.3059, 0.8471],
"hex": "#1d4ed8"
}
},
"800": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.1176, 0.251, 0.6863],
"hex": "#1e40af"
}
},
"900": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.1176, 0.2275, 0.5412],
"hex": "#1e3a8a"
}
},
"950": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.0902, 0.1451, 0.3294],
"hex": "#172554"
}
}
}
}
}
import SwiftUI
enum Palette {
static let blue50 = Color(.sRGB, red: 0.937, green: 0.965, blue: 1.000, opacity: 1)
static let blue100 = Color(.sRGB, red: 0.859, green: 0.918, blue: 0.996, opacity: 1)
static let blue200 = Color(.sRGB, red: 0.749, green: 0.859, blue: 0.996, opacity: 1)
static let blue300 = Color(.sRGB, red: 0.576, green: 0.773, blue: 0.992, opacity: 1)
static let blue400 = Color(.sRGB, red: 0.376, green: 0.647, blue: 0.980, opacity: 1)
static let blue500 = Color(.sRGB, red: 0.231, green: 0.510, blue: 0.965, opacity: 1)
static let blue600 = Color(.sRGB, red: 0.145, green: 0.388, blue: 0.922, opacity: 1)
static let blue700 = Color(.sRGB, red: 0.114, green: 0.306, blue: 0.847, opacity: 1)
static let blue800 = Color(.sRGB, red: 0.118, green: 0.251, blue: 0.686, opacity: 1)
static let blue900 = Color(.sRGB, red: 0.118, green: 0.227, blue: 0.541, opacity: 1)
static let blue950 = Color(.sRGB, red: 0.090, green: 0.145, blue: 0.329, opacity: 1)
}
import androidx.compose.ui.graphics.Color
object Palette {
val Blue50 = Color(0xFFEFF6FF)
val Blue100 = Color(0xFFDBEAFE)
val Blue200 = Color(0xFFBFDBFE)
val Blue300 = Color(0xFF93C5FD)
val Blue400 = Color(0xFF60A5FA)
val Blue500 = Color(0xFF3B82F6)
val Blue600 = Color(0xFF2563EB)
val Blue700 = Color(0xFF1D4ED8)
val Blue800 = Color(0xFF1E40AF)
val Blue900 = Color(0xFF1E3A8A)
val Blue950 = Color(0xFF172554)
}
Families
Other Tailwind families
The rest of the Tailwind CSS v3.4 palette, in the order Tailwind lists it.