Tailwind CSS v4 default palette
Tailwind teal-900: #0B4F4A
In Tailwind CSS v4, teal-900 is defined as --color-teal-900: oklch(38.6% 0.063 188.416), which is #0B4F4A in hex and rgb(11, 79, 74): a dark, muted cyan. In Tailwind v3, teal-900 was #134E4A.
In OKLCH, teal-900 has a lightness of 38.6%, chroma 0.063 and hue 188.4°.
The value fits inside sRGB, so the hex #0B4F4A represents it without loss on any screen.
In v3, teal-900 was #134E4A. The v4 value is ΔE OK 0.4 away, below the point where most people can tell them apart.
Tailwind teal is a blue-green between emerald and cyan, often used as a calm brand accent.
Color codes for teal-900
| Tailwind v4 token | --color-teal-900 |
|---|---|
| OKLCH (source value) | oklch(38.6% 0.063 188.416) |
| HEX | #0B4F4A |
| RGB | rgb(11, 79, 74) |
| HSL | hsl(176, 76%, 18%) |
| HWB | hwb(176 4% 69%) |
| CMYK (naive, no ICC profile) | cmyk(86%, 0%, 6%, 69%) |
| Decimal | 741,194 |
| Tailwind v3 hex | #134E4A |
| Utility classes | bg-teal-900, text-teal-900, border-teal-900 |
Tailwind teal scale
Contrast and accessibility
On teal-900, white text has a contrast ratio of 9.41:1 and passes AAA at any text size; black text reaches 2.23: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-900 | 2.23:1 | Fail | Fail | Fail | Fail | 12.6 |
| White text on teal-900 | 9.41:1 | Pass | Pass | Pass | Pass | −95.7 |
| Teal-900 text on white | 9.41:1 | Pass | Pass | Pass | Pass | 91.4 |
| Teal-900 text on black | 2.23:1 | Fail | Fail | Fail | Fail | −11.0 |
Tints and shades
Each step mixes var(--color-teal-900) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-teal-900), white 25%) in CSS.
Tints (mixed with white)
- 5%
#175853 - 15%
#306965 - 25%
#487b77 - 35%
#608d89 - 45%
#799e9b - 55%
#91b0ae - 65%
#aac1c0 - 75%
#c2d3d2 - 85%
#dae5e4 - 95%
#f3f6f6
Shades (mixed with black)
- 5%
#0a4b46 - 15%
#09433f - 25%
#083b38 - 35%
#073330 - 45%
#062b29 - 55%
#052421 - 65%
#041c1a - 75%
#031413 - 85%
#020c0b - 95%
#010404
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, teal-900's complementary color is #61353D (close to maroon), its analogous colors are #234E37 and #0F4C5A, and its triadic partners are #4D3A5E and #5A3D1B. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #61353d |
| Analogous | −30°, +30° | #234e37#0f4c5a |
| Triadic | +120°, +240° | #4d3a5e#5a3d1b |
| Split-complementary | +150°, +210° | #5a364f#61382a |
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-900 is a cool color: its hue is 176° 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 |
|---|---|---|
| darkslategray | #2f4f4f | 3.1 |
| darkgreen | #006400 | 12.4 |
| darkolivegreen | #556b2f | 13.7 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| emerald-900 | #004f3b | 2.9 |
| cyan-900 | #104e64 | 4.6 |
| mist-700 | #394447 | 5.1 |
Code snippets
<div class="bg-teal-900 text-white">...</div>
<p class="text-teal-900 border-teal-900">...</p>.element {
color: var(--color-teal-900);
background-color: oklch(38.6% 0.063 188.416);
border-color: #0b4f4a;
outline-color: rgb(11 79 74);
}import SwiftUI
extension Color {
static let teal900 = Color(red: 0.043, green: 0.310, blue: 0.290)
}import androidx.compose.ui.graphics.Color
val Teal900 = Color(0xFF0B4F4A)import 'package:flutter/material.dart';
const teal900 = Color(0xFF0B4F4A);<!-- res/values/colors.xml -->
<color name="teal_900">#0B4F4A</color>Frequently asked questions
- What is the hex code for Tailwind teal-900?
- In Tailwind CSS v4, teal-900 is oklch(38.6% 0.063 188.416), which converts to #0B4F4A (rgb(11, 79, 74)) in sRGB. In Tailwind v3 the same name was #134E4A.
- What is the difference between teal-900 in Tailwind v3 and v4?
- v3 used the hex #134E4A; v4 redefined the palette in OKLCH as oklch(38.6% 0.063 188.416). In v3, teal-900 was #134E4A. The v4 value is ΔE OK 0.4 away, below the point where most people can tell them apart.
- How do I use teal-900 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-teal-900). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on teal-900?
- White text on teal-900 has a contrast ratio of 9.41:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.23:1 and fails AA even for large text. In APCA terms that is Lc −95.7 for white and Lc 12.6 for black.
- Which CSS named color is closest to teal-900?
- The closest is darkslategray (#2F4F4F) at ΔE OK 3.1, followed by darkgreen and darkolivegreen.
Last reviewed by Arielton Oberek.