Skip to main content

bg-sky-900

Tailwind Sky 900

#0C4A6E·Sky family·Shade 900

Color Values

HEX
#0C4A6E
RGB
rgb(12, 74, 110)
HSL
hsl(202, 80%, 24%)
OKLCH
oklch(0.391 0.085 241)
CMYK
cmyk(89%, 33%, 0%, 57%)
CSS Variable
var(--color-sky-900)
Tailwind Class
bg-sky-900

Accessibility Score

60/100

Good

Based on WCAG 2.1 contrast ratios against white and black backgrounds.

On White

9.46:1

AAA

On Black

2.22:1

Fail
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-sky-900

Text

text-sky-900

Border

border-sky-900

Ring

ring-sky-900

Outline

outline-sky-900

Fill

fill-sky-900

Stroke

stroke-sky-900

From (gradient)

from-sky-900

Via (gradient)

via-sky-900

To (gradient)

to-sky-900

Placeholder

placeholder-sky-900

Caret

caret-sky-900

Accent

accent-sky-900

Decoration

decoration-sky-900

Shadow Color

shadow-sky-900

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'sky-900': '#0c4a6e', }, }, }, };

CSS Equivalent

/* Hex */
background-color: #0C4A6E;

/* RGB */
background-color: rgb(12, 74, 110);

/* HSL */
background-color: hsl(202, 80%, 24%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.391 0.085 241);

/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-sky-900);

/* Gradient example */
background: linear-gradient(135deg, #f0f9ff 0%, #082f49 100%);

OKLCH — Modern Color Space

Lightness (L)

0.391

39% perceived brightness

Chroma (C)

0.085

Color intensity / saturation

Hue (H)

241°

Angle on perceptual hue wheel

oklch(0.391 0.085 241)

OKLCH is a perceptually uniform color space in CSS Color Level 4. Unlike HSL, equal steps in L produce equal perceived lightness changes — making it ideal for building accessible, harmonious design system scales.

Design Recommendations

Strong dark tone

Shade 900 of the Sky palette

Recommended Uses

  • Body text on white
  • Dark panel backgrounds
  • Near-dark UI elements
  • Footer backgrounds
  • High-contrast headings

Avoid

On dark backgrounds — contrast will be insufficient.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #0C4A6E

Frequently Asked Questions

What is the hex code for Tailwind Sky 900?
Tailwind Sky 900 has the hex code #0C4A6E. Its RGB value is rgb(12, 74, 110) and its HSL value is hsl(202, 80%, 24%).
What Tailwind utility classes use Sky 900?
Use bg-sky-900 for backgrounds, text-sky-900 for text color, border-sky-900 for borders, and ring-sky-900 for focus rings. In Tailwind v4 the CSS variable var(--color-sky-900) is available natively.
Is Tailwind Sky 900 WCAG accessible?
Tailwind Sky 900 achieves a 9.46:1 contrast ratio on white (AAA) and 2.22:1 on black (Fail). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Sky 900?
Tailwind Sky 900 in OKLCH is oklch(0.391 0.085 241) — lightness 0.391, chroma 0.085, hue 241°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Sky 900 used for?
At shade 900, Tailwind Sky 900 is best described as "Strong dark tone". Recommended uses: Body text on white, Dark panel backgrounds, Near-dark UI elements.