Tailwind CSS v4 default palette
Tailwind teal-400: #00D5BE
In Tailwind CSS v4, teal-400 is defined as --color-teal-400: oklch(77.7% 0.152 181.912), which is #00D5BE in hex and rgb(0, 213, 190): a light, vivid cyan. In Tailwind v3, teal-400 was #2DD4BF.
In OKLCH, teal-400 has a lightness of 77.7%, chroma 0.152 and hue 181.9°. It is the most saturated shade of the teal scale.
This OKLCH value lies outside sRGB. The hex #00D5BE 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.3228 0.8221 0.7444).
In v3, teal-400 was #2DD4BF. The v4 value is ΔE OK 2.1 away; v4 is darker and more saturated.
Tailwind teal is a blue-green between emerald and cyan, often used as a calm brand accent.
Color codes for teal-400
| Tailwind v4 token | --color-teal-400 |
|---|---|
| OKLCH (source value) | oklch(77.7% 0.152 181.912) |
| HEX | #00D5BE |
| RGB | rgb(0, 213, 190) |
| HSL | hsl(174, 100%, 42%) |
| HWB | hwb(174 0% 16%) |
| CMYK (naive, no ICC profile) | cmyk(100%, 0%, 11%, 16%) |
| Decimal | 54,718 |
| Display P3 | color(display-p3 0.3228 0.8221 0.7444) |
| Tailwind v3 hex | #2DD4BF |
| Utility classes | bg-teal-400, text-teal-400, border-teal-400 |
Tailwind teal scale
Contrast and accessibility
On teal-400, black text has a contrast ratio of 11.26:1 and passes AAA at any text size; white text reaches 1.86: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 teal-400 | 11.26:1 | Pass | Pass | Pass | Pass | 69.4 |
| White text on teal-400 | 1.86:1 | Fail | Fail | Fail | Fail | −38.7 |
| Teal-400 text on white | 1.86:1 | Fail | Fail | Fail | Fail | 34.5 |
| Teal-400 text on black | 11.26:1 | Pass | Pass | Pass | Pass | −68.1 |
Tints and shades
Each step mixes var(--color-teal-400) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-teal-400), white 25%) in CSS.
Tints (mixed with white)
- 5%
#0dd7c1 - 15%
#26dbc8 - 25%
#40e0ce - 35%
#59e4d5 - 45%
#73e8db - 55%
#8cece2 - 65%
#a6f0e8 - 75%
#bff5ef - 85%
#d9f9f5 - 95%
#f2fdfc
Shades (mixed with black)
- 5%
#00cab5 - 15%
#00b5a2 - 25%
#00a08f - 35%
#008a7c - 45%
#007569 - 55%
#006055 - 65%
#004b43 - 75%
#003530 - 85%
#00201d - 95%
#000b0a
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, teal-400's complementary color is #FF8AAF (close to lightcoral), its analogous colors are #5FD285 and #00CFEE, and its triadic partners are #C99DFF and #FA9E40. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #ff8aaf |
| Analogous | −30°, +30° | #5fd285#00cfee |
| Triadic | +120°, +240° | #c99dff#fa9e40 |
| Split-complementary | +150°, +210° | #ee90e1#ff8e77 |
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 teal-400 is a cool color: its hue is 174° 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 |
|---|---|---|
| darkturquoise | #00ced1 | 4.2 |
| mediumturquoise | #48d1cc | 4.3 |
| turquoise | #40e0d0 | 5.1 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| emerald-400 | #00d492 | 6.0 |
| teal-500 | #00bba7 | 7.4 |
| cyan-400 | #00d3f2 | 7.9 |
Code snippets
<div class="bg-teal-400 text-black">...</div>
<p class="text-teal-400 border-teal-400">...</p>.element {
color: var(--color-teal-400);
background-color: oklch(77.7% 0.152 181.912);
border-color: #00d5be;
outline-color: rgb(0 213 190);
}import SwiftUI
extension Color {
static let teal400 = Color(red: 0.000, green: 0.835, blue: 0.745)
}import androidx.compose.ui.graphics.Color
val Teal400 = Color(0xFF00D5BE)import 'package:flutter/material.dart';
const teal400 = Color(0xFF00D5BE);<!-- res/values/colors.xml -->
<color name="teal_400">#00D5BE</color>Frequently asked questions
- What is the hex code for Tailwind teal-400?
- In Tailwind CSS v4, teal-400 is oklch(77.7% 0.152 181.912), which converts to #00D5BE (rgb(0, 213, 190)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #2DD4BF.
- What is the difference between teal-400 in Tailwind v3 and v4?
- v3 used the hex #2DD4BF; v4 redefined the palette in OKLCH as oklch(77.7% 0.152 181.912). In v3, teal-400 was #2DD4BF. The v4 value is ΔE OK 2.1 away; v4 is darker and more saturated.
- How do I use teal-400 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-teal-400). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on teal-400?
- White text on teal-400 has a contrast ratio of 1.86:1, which fails AA even for large text under WCAG 2.2. Black text reaches 11.26:1 and passes both AA and AAA. In APCA terms that is Lc −38.7 for white and Lc 69.4 for black.
- Which CSS named color is closest to teal-400?
- The closest is darkturquoise (#00CED1) at ΔE OK 4.2, followed by mediumturquoise and turquoise.
Last reviewed by Arielton Oberek.