Skip to content

Tailwind CSS v4 default palette

Tailwind sky-500: #00A6F4

In Tailwind CSS v4, sky-500 is defined as --color-sky-500: oklch(68.5% 0.169 237.323), which is #00A6F4 in hex and rgb(0, 166, 244): a medium, vivid sky blue. In Tailwind v3, sky-500 was #0EA5E9.

sky-500#00A6F4

In OKLCH, sky-500 has a lightness of 68.5%, chroma 0.169 and hue 237.3°. It is the most saturated shade of the sky scale.

This OKLCH value lies outside sRGB. The hex #00A6F4 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.2191 0.639 0.9315).

In v3, sky-500 was #0EA5E9. The v4 value is ΔE OK 2.1 away; v4 is more saturated.

Tailwind sky is a light, clear blue between cyan and blue. In v2.2 it replaced the older lightBlue name.

Color codes for sky-500

Color codes for sky-500
Tailwind v4 token--color-sky-500
OKLCH (source value)oklch(68.5% 0.169 237.323)
HEX#00A6F4
RGBrgb(0, 166, 244)
HSLhsl(199, 100%, 48%)
HWBhwb(199 0% 4%)
CMYK (naive, no ICC profile)cmyk(100%, 32%, 0%, 4%)
Decimal42,740
Display P3color(display-p3 0.2191 0.639 0.9315)
Tailwind v3 hex#0EA5E9
Utility classesbg-sky-500, text-sky-500, border-sky-500

Tailwind sky scale

Contrast and accessibility

On sky-500, black text has a contrast ratio of 7.76:1 and passes AAA at any text size; white text reaches 2.70: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 sky-5007.76:1PassPassPassPass52.3
White text on sky-5002.70:1FailFailFailFail−56.9
Sky-500 text on white2.70:1FailFailFailFail51.7
Sky-500 text on black7.76:1PassPassPassPass−50.2

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #0daaf5
  2. 15%
    #26b3f6
  3. 25%
    #40bcf7
  4. 35%
    #59c5f8
  5. 45%
    #73cef9
  6. 55%
    #8cd7fa
  7. 65%
    #a6e0fb
  8. 75%
    #bfe9fc
  9. 85%
    #d9f2fd
  10. 95%
    #f2fbfe

Shades (mixed with black)

  1. 5%
    #009ee8
  2. 15%
    #008dcf
  3. 25%
    #007db7
  4. 35%
    #006c9f
  5. 45%
    #005b86
  6. 55%
    #004b6e
  7. 65%
    #003a55
  8. 75%
    #002a3d
  9. 85%
    #001925
  10. 95%
    #00080c

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, sky-500's complementary color is #E57900 (close to peru), its analogous colors are #00B0C5 and #6C92FF, and its triadic partners are #E8669B and #93A600. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#e57900
Analogous−30°, +30°#00b0c5#6c92ff
Triadic+120°, +240°#e8669b#93a600
Split-complementary+150°, +210°#f0695d#c39100

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 sky-500 is a cool color: its hue is 199° 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
dodgerblue#1e90ff6.3
cornflowerblue#6495ed7.1
deepskyblue#00bfff7.4

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
blue-400#51a2ff5.5
sky-400#00bcff6.3
cyan-500#00b8db7.2

Code snippets

Tailwind CSS
<div class="bg-sky-500 text-black">...</div>
<p class="text-sky-500 border-sky-500">...</p>
CSS
.element {
  color: var(--color-sky-500);
  background-color: oklch(68.5% 0.169 237.323);
  border-color: #00a6f4;
  outline-color: rgb(0 166 244);
}
SwiftUI
import SwiftUI

extension Color {
  static let sky500 = Color(red: 0.000, green: 0.651, blue: 0.957)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const sky500 = Color(0xFF00A6F4);
Android XML
<!-- res/values/colors.xml -->
<color name="sky_500">#00A6F4</color>

Frequently asked questions

What is the hex code for Tailwind sky-500?
In Tailwind CSS v4, sky-500 is oklch(68.5% 0.169 237.323), which converts to #00A6F4 (rgb(0, 166, 244)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #0EA5E9.
What is the difference between sky-500 in Tailwind v3 and v4?
v3 used the hex #0EA5E9; v4 redefined the palette in OKLCH as oklch(68.5% 0.169 237.323). In v3, sky-500 was #0EA5E9. The v4 value is ΔE OK 2.1 away; v4 is more saturated.
How do I use sky-500 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-sky-500). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on sky-500?
White text on sky-500 has a contrast ratio of 2.70:1, which fails AA even for large text under WCAG 2.2. Black text reaches 7.76:1 and passes both AA and AAA. In APCA terms that is Lc −56.9 for white and Lc 52.3 for black.
Which CSS named color is closest to sky-500?
The closest is dodgerblue (#1E90FF) at ΔE OK 6.3, followed by cornflowerblue and deepskyblue.

Last reviewed by Arielton Oberek.