Skip to content

Tailwind CSS v4 default palette

Tailwind sky-400: #00BCFF

In Tailwind CSS v4, sky-400 is defined as --color-sky-400: oklch(74.6% 0.16 232.661), which is #00BCFF in hex and rgb(0, 188, 255): a light, vivid sky blue. In Tailwind v3, sky-400 was #38BDF8.

sky-400#00BCFF

In OKLCH, sky-400 has a lightness of 74.6%, chroma 0.160 and hue 232.7°.

This OKLCH value lies outside sRGB. The hex #00BCFF 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.306 0.725 0.9802).

In v3, sky-400 was #38BDF8. The v4 value is ΔE OK 2.2 away; v4 is darker and 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-400

Color codes for sky-400
Tailwind v4 token--color-sky-400
OKLCH (source value)oklch(74.6% 0.16 232.661)
HEX#00BCFF
RGBrgb(0, 188, 255)
HSLhsl(196, 100%, 50%)
HWBhwb(196 0% 0%)
CMYK (naive, no ICC profile)cmyk(100%, 26%, 0%, 0%)
Decimal48,383
Display P3color(display-p3 0.306 0.725 0.9802)
Tailwind v3 hex#38BDF8
Utility classesbg-sky-400, text-sky-400, border-sky-400

Tailwind sky scale

Contrast and accessibility

On sky-400, black text has a contrast ratio of 9.63:1 and passes AAA at any text size; white text reaches 2.17: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-4009.63:1PassPassPassPass61.8
White text on sky-4002.17:1FailFailFailFail−46.8
Sky-400 text on white2.17:1FailFailFailFail42.1
Sky-400 text on black9.63:1PassPassPassPass−60.1

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #0dbfff
  2. 15%
    #26c6ff
  3. 25%
    #40cdff
  4. 35%
    #59d3ff
  5. 45%
    #73daff
  6. 55%
    #8ce1ff
  7. 65%
    #a6e8ff
  8. 75%
    #bfeeff
  9. 85%
    #d9f5ff
  10. 95%
    #f2fcff

Shades (mixed with black)

  1. 5%
    #00b3f2
  2. 15%
    #00a0d9
  3. 25%
    #008dbf
  4. 35%
    #007aa6
  5. 45%
    #00678c
  6. 55%
    #005573
  7. 65%
    #004259
  8. 75%
    #002f40
  9. 85%
    #001c26
  10. 95%
    #00090d

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, sky-400's complementary color is #F98C3E (close to darkorange), its analogous colors are #00C6D5 and #78AAFF, and its triadic partners are #F77EB6 and #AFB61B. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#f98c3e
Analogous−30°, +30°#00c6d5#78aaff
Triadic+120°, +240°#f77eb6#afb61b
Split-complementary+150°, +210°#ff7f7d#dea100

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-400 is a cool color: its hue is 196° 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
deepskyblue#00bfff1.2
darkturquoise#00ced19.8
lightskyblue#87cefa10.0

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
cyan-500#00b8db5.8
sky-500#00a6f46.3
cyan-400#00d3f27.2

Code snippets

Tailwind CSS
<div class="bg-sky-400 text-black">...</div>
<p class="text-sky-400 border-sky-400">...</p>
CSS
.element {
  color: var(--color-sky-400);
  background-color: oklch(74.6% 0.16 232.661);
  border-color: #00bcff;
  outline-color: rgb(0 188 255);
}
SwiftUI
import SwiftUI

extension Color {
  static let sky400 = Color(red: 0.000, green: 0.737, blue: 1.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const sky400 = Color(0xFF00BCFF);
Android XML
<!-- res/values/colors.xml -->
<color name="sky_400">#00BCFF</color>

Frequently asked questions

What is the hex code for Tailwind sky-400?
In Tailwind CSS v4, sky-400 is oklch(74.6% 0.16 232.661), which converts to #00BCFF (rgb(0, 188, 255)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #38BDF8.
What is the difference between sky-400 in Tailwind v3 and v4?
v3 used the hex #38BDF8; v4 redefined the palette in OKLCH as oklch(74.6% 0.16 232.661). In v3, sky-400 was #38BDF8. The v4 value is ΔE OK 2.2 away; v4 is darker and more saturated.
How do I use sky-400 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-sky-400). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on sky-400?
White text on sky-400 has a contrast ratio of 2.17:1, which fails AA even for large text under WCAG 2.2. Black text reaches 9.63:1 and passes both AA and AAA. In APCA terms that is Lc −46.8 for white and Lc 61.8 for black.
Which CSS named color is closest to sky-400?
The closest is deepskyblue (#00BFFF) at ΔE OK 1.2, followed by darkturquoise and lightskyblue.

Last reviewed by Arielton Oberek.