Tailwind CSS v4 default palette
Tailwind sky-300: #74D4FF
In Tailwind CSS v4, sky-300 is defined as --color-sky-300: oklch(82.8% 0.111 230.318), which is #74D4FF in hex and rgb(116, 212, 255): a very light, moderately saturated sky blue. In Tailwind v3, sky-300 was #7DD3FC.
In OKLCH, sky-300 has a lightness of 82.8%, chroma 0.111 and hue 230.3°.
This OKLCH value lies outside sRGB. The hex #74D4FF 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.5464 0.8226 0.9906).
In v3, sky-300 was #7DD3FC. The v4 value is ΔE OK 1.0 away, below the point where most people can tell them apart; 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-300
| Tailwind v4 token | --color-sky-300 |
|---|---|
| OKLCH (source value) | oklch(82.8% 0.111 230.318) |
| HEX | #74D4FF |
| RGB | rgb(116, 212, 255) |
| HSL | hsl(199, 100%, 73%) |
| HWB | hwb(199 45% 0%) |
| CMYK (naive, no ICC profile) | cmyk(55%, 17%, 0%, 0%) |
| Decimal | 7,656,703 |
| Display P3 | color(display-p3 0.5464 0.8226 0.9906) |
| Tailwind v3 hex | #7DD3FC |
| Utility classes | bg-sky-300, text-sky-300, border-sky-300 |
Tailwind sky scale
Contrast and accessibility
On sky-300, black text has a contrast ratio of 12.60:1 and passes AAA at any text size; white text reaches 1.66: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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on sky-300 | 12.60:1 | Pass | Pass | Pass | Pass | 74.7 |
| White text on sky-300 | 1.66:1 | Fail | Fail | Fail | Fail | −32.8 |
| Sky-300 text on white | 1.66:1 | Fail | Fail | Fail | Fail | 29.1 |
| Sky-300 text on black | 12.60:1 | Pass | Pass | Pass | Pass | −73.8 |
Tints and shades
Each step mixes var(--color-sky-300) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-sky-300), white 25%) in CSS.
Tints (mixed with white)
- 5%
#7bd6ff - 15%
#89daff - 25%
#97dfff - 35%
#a5e3ff - 45%
#b3e7ff - 55%
#c0ecff - 65%
#cef0ff - 75%
#dcf4ff - 85%
#eaf9ff - 95%
#f8fdff
Shades (mixed with black)
- 5%
#6ec9f2 - 15%
#63b4d9 - 25%
#579fbf - 35%
#4b8aa6 - 45%
#40758c - 55%
#345f73 - 65%
#294a59 - 75%
#1d3540 - 85%
#112026 - 95%
#060b0d
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, sky-300's complementary color is #FFB184 (close to lightsalmon), its analogous colors are #5FDCE3 and #9EC8FF, and its triadic partners are #FEA9D0 and #CACD76. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #ffb184 |
| Analogous | −30°, +30° | #5fdce3#9ec8ff |
| Triadic | +120°, +240° | #fea9d0#cacd76 |
| Split-complementary | +150°, +210° | #ffa9a8#ecbf6f |
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-300 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.
Code snippets
<div class="bg-sky-300 text-black">...</div>
<p class="text-sky-300 border-sky-300">...</p>.element {
color: var(--color-sky-300);
background-color: oklch(82.8% 0.111 230.318);
border-color: #74d4ff;
outline-color: rgb(116 212 255);
}import SwiftUI
extension Color {
static let sky300 = Color(red: 0.455, green: 0.831, blue: 1.000)
}import androidx.compose.ui.graphics.Color
val Sky300 = Color(0xFF74D4FF)import 'package:flutter/material.dart';
const sky300 = Color(0xFF74D4FF);<!-- res/values/colors.xml -->
<color name="sky_300">#74D4FF</color>Frequently asked questions
- What is the hex code for Tailwind sky-300?
- In Tailwind CSS v4, sky-300 is oklch(82.8% 0.111 230.318), which converts to #74D4FF (rgb(116, 212, 255)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #7DD3FC.
- What is the difference between sky-300 in Tailwind v3 and v4?
- v3 used the hex #7DD3FC; v4 redefined the palette in OKLCH as oklch(82.8% 0.111 230.318). In v3, sky-300 was #7DD3FC. The v4 value is ΔE OK 1.0 away, below the point where most people can tell them apart; v4 is more saturated.
- How do I use sky-300 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-sky-300). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on sky-300?
- White text on sky-300 has a contrast ratio of 1.66:1, which fails AA even for large text under WCAG 2.2. Black text reaches 12.60:1 and passes both AA and AAA. In APCA terms that is Lc −32.8 for white and Lc 74.7 for black.
- Which CSS named color is closest to sky-300?
- The closest is lightskyblue (#87CEFA) at ΔE OK 2.1, followed by skyblue and lightblue.
Last reviewed by Arielton Oberek.