Skip to content

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.

teal-900#0B4F4A

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

Color codes for teal-900
Tailwind v4 token--color-teal-900
OKLCH (source value)oklch(38.6% 0.063 188.416)
HEX#0B4F4A
RGBrgb(11, 79, 74)
HSLhsl(176, 76%, 18%)
HWBhwb(176 4% 69%)
CMYK (naive, no ICC profile)cmyk(86%, 0%, 6%, 69%)
Decimal741,194
Tailwind v3 hex#134E4A
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on teal-9002.23:1FailFailFailFail12.6
White text on teal-9009.41:1PassPassPassPass−95.7
Teal-900 text on white9.41:1PassPassPassPass91.4
Teal-900 text on black2.23:1FailFailFailFail−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)

  1. 5%
    #175853
  2. 15%
    #306965
  3. 25%
    #487b77
  4. 35%
    #608d89
  5. 45%
    #799e9b
  6. 55%
    #91b0ae
  7. 65%
    #aac1c0
  8. 75%
    #c2d3d2
  9. 85%
    #dae5e4
  10. 95%
    #f3f6f6

Shades (mixed with black)

  1. 5%
    #0a4b46
  2. 15%
    #09433f
  3. 25%
    #083b38
  4. 35%
    #073330
  5. 45%
    #062b29
  6. 55%
    #052421
  7. 65%
    #041c1a
  8. 75%
    #031413
  9. 85%
    #020c0b
  10. 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.

Color harmonies
HarmonyRotationColor
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

Nearest CSS named colors
ColorHEXΔE OK
darkslategray#2f4f4f3.1
darkgreen#00640012.4
darkolivegreen#556b2f13.7

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
emerald-900#004f3b2.9
cyan-900#104e644.6
mist-700#3944475.1

Code snippets

Tailwind CSS
<div class="bg-teal-900 text-white">...</div>
<p class="text-teal-900 border-teal-900">...</p>
CSS
.element {
  color: var(--color-teal-900);
  background-color: oklch(38.6% 0.063 188.416);
  border-color: #0b4f4a;
  outline-color: rgb(11 79 74);
}
SwiftUI
import SwiftUI

extension Color {
  static let teal900 = Color(red: 0.043, green: 0.310, blue: 0.290)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Teal900 = Color(0xFF0B4F4A)
Flutter
import 'package:flutter/material.dart';

const teal900 = Color(0xFF0B4F4A);
Android XML
<!-- 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.