Skip to content

Tailwind CSS v4 default palette

Tailwind cyan-800: #005F78

In Tailwind CSS v4, cyan-800 is defined as --color-cyan-800: oklch(45% 0.085 224.283), which is #005F78 in hex and rgb(0, 95, 120): a medium-dark, muted sky blue. In Tailwind v3, cyan-800 was #155E75.

cyan-800#005F78

In OKLCH, cyan-800 has a lightness of 45.0%, chroma 0.085 and hue 224.3°.

This OKLCH value lies outside sRGB. The hex #005F78 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.1514 0.3652 0.4611).

In v3, cyan-800 was #155E75. The v4 value is ΔE OK 0.8 away, below the point where most people can tell them apart; v4 is more saturated.

Tailwind cyan is a bright aqua blue; its light shades are popular for informational backgrounds.

Color codes for cyan-800

Color codes for cyan-800
Tailwind v4 token--color-cyan-800
OKLCH (source value)oklch(45% 0.085 224.283)
HEX#005F78
RGBrgb(0, 95, 120)
HSLhsl(192, 100%, 24%)
HWBhwb(192 0% 53%)
CMYK (naive, no ICC profile)cmyk(100%, 21%, 0%, 53%)
Decimal24,440
Display P3color(display-p3 0.1514 0.3652 0.4611)
Tailwind v3 hex#155E75
Utility classesbg-cyan-800, text-cyan-800, border-cyan-800

Tailwind cyan scale

Contrast and accessibility

On cyan-800, white text has a contrast ratio of 7.22:1 and passes AAA at any text size; black text reaches 2.90: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 cyan-8002.90:1FailFailFailFail19.5
White text on cyan-8007.22:1PassPassPassPass−89.5
Cyan-800 text on white7.22:1PassPassPassPass84.5
Cyan-800 text on black2.90:1FailFailFailFail−17.5

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #0d677f
  2. 15%
    #26778c
  3. 25%
    #40879a
  4. 35%
    #5997a7
  5. 45%
    #73a7b5
  6. 55%
    #8cb7c2
  7. 65%
    #a6c7d0
  8. 75%
    #bfd7dd
  9. 85%
    #d9e7eb
  10. 95%
    #f2f7f8

Shades (mixed with black)

  1. 5%
    #005a72
  2. 15%
    #005166
  3. 25%
    #00475a
  4. 35%
    #003e4e
  5. 45%
    #003442
  6. 55%
    #002b36
  7. 65%
    #00212a
  8. 75%
    #00181e
  9. 85%
    #000e12
  10. 95%
    #000506

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, cyan-800's complementary color is #7C442C (close to saddlebrown), its analogous colors are #006363 and #325783, and its triadic partners are #764161 and #5D5714. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#7c442c
Analogous−30°, +30°#006363#325783
Triadic+120°, +240°#764161#5d5714
Split-complementary+150°, +210°#7d4047#714d14

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 cyan-800 is a cool color: its hue is 192° 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#2f4f4f7.2
teal#00808010.4
dimgray#69696911.1

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
sky-800#00598a3.8
teal-800#005f5a5.3
cyan-900#104e645.4

Code snippets

Tailwind CSS
<div class="bg-cyan-800 text-white">...</div>
<p class="text-cyan-800 border-cyan-800">...</p>
CSS
.element {
  color: var(--color-cyan-800);
  background-color: oklch(45% 0.085 224.283);
  border-color: #005f78;
  outline-color: rgb(0 95 120);
}
SwiftUI
import SwiftUI

extension Color {
  static let cyan800 = Color(red: 0.000, green: 0.373, blue: 0.471)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const cyan800 = Color(0xFF005F78);
Android XML
<!-- res/values/colors.xml -->
<color name="cyan_800">#005F78</color>

Frequently asked questions

What is the hex code for Tailwind cyan-800?
In Tailwind CSS v4, cyan-800 is oklch(45% 0.085 224.283), which converts to #005F78 (rgb(0, 95, 120)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #155E75.
What is the difference between cyan-800 in Tailwind v3 and v4?
v3 used the hex #155E75; v4 redefined the palette in OKLCH as oklch(45% 0.085 224.283). In v3, cyan-800 was #155E75. The v4 value is ΔE OK 0.8 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use cyan-800 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-cyan-800). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on cyan-800?
White text on cyan-800 has a contrast ratio of 7.22:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.90:1 and fails AA even for large text. In APCA terms that is Lc −89.5 for white and Lc 19.5 for black.
Which CSS named color is closest to cyan-800?
The closest is darkslategray (#2F4F4F) at ΔE OK 7.2, followed by teal and dimgray.

Last reviewed by Arielton Oberek.