Skip to content

Tailwind CSS v4 default palette

Tailwind emerald-950: #002C22

In Tailwind CSS v4, emerald-950 is defined as --color-emerald-950: oklch(26.2% 0.051 172.552), which is #002C22 in hex and rgb(0, 44, 34): a very dark, muted cyan. In Tailwind v3, emerald-950 was #022C22.

emerald-950#002C22

In OKLCH, emerald-950 has a lightness of 26.2%, chroma 0.051 and hue 172.6°.

This OKLCH value lies outside sRGB. The hex #002C22 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.0549 0.1704 0.1348).

In v3, emerald-950 was #022C22. The v4 value is ΔE OK 0.2 away, below the point where most people can tell them apart.

Tailwind emerald is a cooler, slightly bluer green than green, common for success states in finance and health products.

Color codes for emerald-950

Color codes for emerald-950
Tailwind v4 token--color-emerald-950
OKLCH (source value)oklch(26.2% 0.051 172.552)
HEX#002C22
RGBrgb(0, 44, 34)
HSLhsl(166, 100%, 9%)
HWBhwb(166 0% 83%)
CMYK (naive, no ICC profile)cmyk(100%, 0%, 23%, 83%)
Decimal11,298
Display P3color(display-p3 0.0549 0.1704 0.1348)
Tailwind v3 hex#022C22
Utility classesbg-emerald-950, text-emerald-950, border-emerald-950

Tailwind emerald scale

Contrast and accessibility

On emerald-950, white text has a contrast ratio of 15.18:1 and passes AAA at any text size; black text reaches 1.38: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 emerald-9501.38:1FailFailFailFail0.0
White text on emerald-95015.18:1PassPassPassPass−104.6
Emerald-950 text on white15.18:1PassPassPassPass101.8
Emerald-950 text on black1.38:1FailFailFailFail0.0

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #0d372d
  2. 15%
    #264c43
  3. 25%
    #406159
  4. 35%
    #59766f
  5. 45%
    #738b85
  6. 55%
    #8ca09c
  7. 65%
    #a6b5b2
  8. 75%
    #bfcac8
  9. 85%
    #d9dfde
  10. 95%
    #f2f4f4

Shades (mixed with black)

  1. 5%
    #002a20
  2. 15%
    #00251d
  3. 25%
    #00211a
  4. 35%
    #001d16
  5. 45%
    #001813
  6. 55%
    #00140f
  7. 65%
    #000f0c
  8. 75%
    #000b09
  9. 85%
    #000705
  10. 95%
    #000202

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, emerald-950's complementary color is #371927 (close to midnightblue), its analogous colors are #152B13 and #002B2F, and its triadic partners are #251F3B and #381D0B. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#371927
Analogous−30°, +30°#152b13#002b2f
Triadic+120°, +240°#251f3b#381d0b
Split-complementary+150°, +210°#301c33#3a1a19

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 emerald-950 is a cool color: its hue is 166° 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#2f4f4f14.3
midnightblue#19197016.3
navy#00008019.6

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
teal-950#022f2e2.3
green-950#032e152.4
mist-800#22292b4.6

Code snippets

Tailwind CSS
<div class="bg-emerald-950 text-white">...</div>
<p class="text-emerald-950 border-emerald-950">...</p>
CSS
.element {
  color: var(--color-emerald-950);
  background-color: oklch(26.2% 0.051 172.552);
  border-color: #002c22;
  outline-color: rgb(0 44 34);
}
SwiftUI
import SwiftUI

extension Color {
  static let emerald950 = Color(red: 0.000, green: 0.173, blue: 0.133)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const emerald950 = Color(0xFF002C22);
Android XML
<!-- res/values/colors.xml -->
<color name="emerald_950">#002C22</color>

Frequently asked questions

What is the hex code for Tailwind emerald-950?
In Tailwind CSS v4, emerald-950 is oklch(26.2% 0.051 172.552), which converts to #002C22 (rgb(0, 44, 34)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #022C22.
What is the difference between emerald-950 in Tailwind v3 and v4?
v3 used the hex #022C22; v4 redefined the palette in OKLCH as oklch(26.2% 0.051 172.552). In v3, emerald-950 was #022C22. The v4 value is ΔE OK 0.2 away, below the point where most people can tell them apart.
How do I use emerald-950 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-emerald-950). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on emerald-950?
White text on emerald-950 has a contrast ratio of 15.18:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.38:1 and fails AA even for large text. In APCA terms that is Lc −104.6 for white and Lc 0.0 for black.
Which CSS named color is closest to emerald-950?
The closest is darkslategray (#2F4F4F) at ΔE OK 14.3, followed by midnightblue and navy.

Last reviewed by Arielton Oberek.