Skip to content

Tailwind CSS v4 default palette

Tailwind sky-950: #052F4A

In Tailwind CSS v4, sky-950 is defined as --color-sky-950: oklch(29.3% 0.066 243.157), which is #052F4A in hex and rgb(5, 47, 74): a very dark, muted sky blue. In Tailwind v3, sky-950 was #082F49.

sky-950#052F4A

In OKLCH, sky-950 has a lightness of 29.3%, chroma 0.066 and hue 243.2°.

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

In v3, sky-950 was #082F49. The v4 value is ΔE OK 0.3 away, below the point where most people can tell them apart.

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

Color codes for sky-950

Color codes for sky-950
Tailwind v4 token--color-sky-950
OKLCH (source value)oklch(29.3% 0.066 243.157)
HEX#052F4A
RGBrgb(5, 47, 74)
HSLhsl(203, 87%, 15%)
HWBhwb(203 2% 71%)
CMYK (naive, no ICC profile)cmyk(93%, 36%, 0%, 71%)
Decimal339,786
Tailwind v3 hex#082F49
Utility classesbg-sky-950, text-sky-950, border-sky-950

Tailwind sky scale

Contrast and accessibility

On sky-950, white text has a contrast ratio of 13.88:1 and passes AAA at any text size; black text reaches 1.51: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-9501.51:1FailFailFailFail0.0
White text on sky-95013.88:1PassPassPassPass−103.3
Sky-950 text on white13.88:1PassPassPassPass100.2
Sky-950 text on black1.51:1FailFailFailFail0.0

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #123953
  2. 15%
    #2b4e65
  3. 25%
    #446377
  4. 35%
    #5d7889
  5. 45%
    #768d9b
  6. 55%
    #8fa1ae
  7. 65%
    #a8b6c0
  8. 75%
    #c1cbd2
  9. 85%
    #dae0e4
  10. 95%
    #f3f5f6

Shades (mixed with black)

  1. 5%
    #052d46
  2. 15%
    #04283f
  3. 25%
    #042338
  4. 35%
    #031f30
  5. 45%
    #031a29
  6. 55%
    #021521
  7. 65%
    #02101a
  8. 75%
    #010c13
  9. 85%
    #01070b
  10. 95%
    #000204

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, sky-950's complementary color is #432301 (close to maroon), its analogous colors are #003440 and #22294D, and its triadic partners are #461C29 and #263105. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#432301
Analogous−30°, +30°#003440#22294d
Triadic+120°, +240°#461c29#263105
Split-complementary+150°, +210°#471e15#372b00

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-950 is a cool color: its hue is 203° 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
midnightblue#1919709.2
darkslategray#2f4f4f12.0
navy#00008013.0

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
cyan-950#0533452.0
slate-800#1d293d3.2
gray-800#1e29393.8

Code snippets

Tailwind CSS
<div class="bg-sky-950 text-white">...</div>
<p class="text-sky-950 border-sky-950">...</p>
CSS
.element {
  color: var(--color-sky-950);
  background-color: oklch(29.3% 0.066 243.157);
  border-color: #052f4a;
  outline-color: rgb(5 47 74);
}
SwiftUI
import SwiftUI

extension Color {
  static let sky950 = Color(red: 0.020, green: 0.184, blue: 0.290)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const sky950 = Color(0xFF052F4A);
Android XML
<!-- res/values/colors.xml -->
<color name="sky_950">#052F4A</color>

Frequently asked questions

What is the hex code for Tailwind sky-950?
In Tailwind CSS v4, sky-950 is oklch(29.3% 0.066 243.157), which converts to #052F4A (rgb(5, 47, 74)) in sRGB. In Tailwind v3 the same name was #082F49.
What is the difference between sky-950 in Tailwind v3 and v4?
v3 used the hex #082F49; v4 redefined the palette in OKLCH as oklch(29.3% 0.066 243.157). In v3, sky-950 was #082F49. The v4 value is ΔE OK 0.3 away, below the point where most people can tell them apart.
How do I use sky-950 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-sky-950). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on sky-950?
White text on sky-950 has a contrast ratio of 13.88:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.51:1 and fails AA even for large text. In APCA terms that is Lc −103.3 for white and Lc 0.0 for black.
Which CSS named color is closest to sky-950?
The closest is midnightblue (#191970) at ΔE OK 9.2, followed by darkslategray and navy.

Last reviewed by Arielton Oberek.