Skip to content

Tailwind CSS v4 default palette

Tailwind teal-950: #022F2E

In Tailwind CSS v4, teal-950 is defined as --color-teal-950: oklch(27.7% 0.046 192.524), which is #022F2E in hex and rgb(2, 47, 46): a very dark, muted cyan. In Tailwind v3, teal-950 was #042F2E.

teal-950#022F2E

In OKLCH, teal-950 has a lightness of 27.7%, chroma 0.046 and hue 192.5°.

The value fits inside sRGB, so the hex #022F2E represents it without loss on any screen.

In v3, teal-950 was #042F2E. The v4 value is ΔE OK 0.1 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-950

Color codes for teal-950
Tailwind v4 token--color-teal-950
OKLCH (source value)oklch(27.7% 0.046 192.524)
HEX#022F2E
RGBrgb(2, 47, 46)
HSLhsl(179, 92%, 10%)
HWBhwb(179 1% 82%)
CMYK (naive, no ICC profile)cmyk(96%, 0%, 2%, 82%)
Decimal143,150
Tailwind v3 hex#042F2E
Utility classesbg-teal-950, text-teal-950, border-teal-950

Tailwind teal scale

Contrast and accessibility

On teal-950, white text has a contrast ratio of 14.49:1 and passes AAA at any text size; black text reaches 1.44: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-9501.44:1FailFailFailFail0.0
White text on teal-95014.49:1PassPassPassPass−104.0
Teal-950 text on white14.49:1PassPassPassPass101.0
Teal-950 text on black1.44:1FailFailFailFail0.0

Tints and shades

Each step mixes var(--color-teal-950) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-teal-950), white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #0f3938
  2. 15%
    #284e4d
  3. 25%
    #416362
  4. 35%
    #5b7877
  5. 45%
    #748d8c
  6. 55%
    #8da1a1
  7. 65%
    #a6b6b6
  8. 75%
    #c0cbcb
  9. 85%
    #d9e0e0
  10. 95%
    #f2f5f5

Shades (mixed with black)

  1. 5%
    #022d2c
  2. 15%
    #022827
  3. 25%
    #022323
  4. 35%
    #011f1e
  5. 45%
    #011a19
  6. 55%
    #011515
  7. 65%
    #011010
  8. 75%
    #010c0c
  9. 85%
    #000707
  10. 95%
    #000202

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, teal-950's complementary color is #3C1E22 (close to maroon), its analogous colors are #0F2F21 and #072D38, and its triadic partners are #302138 and #36240C. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#3c1e22
Analogous−30°, +30°#0f2f21#072d38
Triadic+120°, +240°#302138#36240c
Split-complementary+150°, +210°#381f2e#3b2015

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-950 is a cool color: its hue is 179° 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#2f4f4f12.6
midnightblue#19197014.4
navy#00008017.9

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
emerald-950#002c222.3
mist-800#22292b3.6
cyan-950#0533454.2

Code snippets

Tailwind CSS
<div class="bg-teal-950 text-white">...</div>
<p class="text-teal-950 border-teal-950">...</p>
CSS
.element {
  color: var(--color-teal-950);
  background-color: oklch(27.7% 0.046 192.524);
  border-color: #022f2e;
  outline-color: rgb(2 47 46);
}
SwiftUI
import SwiftUI

extension Color {
  static let teal950 = Color(red: 0.008, green: 0.184, blue: 0.180)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const teal950 = Color(0xFF022F2E);
Android XML
<!-- res/values/colors.xml -->
<color name="teal_950">#022F2E</color>

Frequently asked questions

What is the hex code for Tailwind teal-950?
In Tailwind CSS v4, teal-950 is oklch(27.7% 0.046 192.524), which converts to #022F2E (rgb(2, 47, 46)) in sRGB. In Tailwind v3 the same name was #042F2E.
What is the difference between teal-950 in Tailwind v3 and v4?
v3 used the hex #042F2E; v4 redefined the palette in OKLCH as oklch(27.7% 0.046 192.524). In v3, teal-950 was #042F2E. The v4 value is ΔE OK 0.1 away, below the point where most people can tell them apart.
How do I use teal-950 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-teal-950). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on teal-950?
White text on teal-950 has a contrast ratio of 14.49:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.44:1 and fails AA even for large text. In APCA terms that is Lc −104.0 for white and Lc 0.0 for black.
Which CSS named color is closest to teal-950?
The closest is darkslategray (#2F4F4F) at ΔE OK 12.6, followed by midnightblue and navy.

Last reviewed by Arielton Oberek.