Skip to main content

bg-slate-400

Tailwind Slate 400

#94A3B8·Slate family·Shade 400

Color Values

HEX
#94A3B8
RGB
rgb(148, 163, 184)
HSL
hsl(215, 20%, 65%)
OKLCH
oklch(0.711 0.035 257)
CMYK
cmyk(20%, 11%, 0%, 28%)
CSS Variable
var(--color-slate-400)
Tailwind Class
bg-slate-400

Accessibility Score

60/100

Good

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

On White

2.56:1

Fail

On Black

8.19:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-slate-400

Text

text-slate-400

Border

border-slate-400

Ring

ring-slate-400

Outline

outline-slate-400

Fill

fill-slate-400

Stroke

stroke-slate-400

From (gradient)

from-slate-400

Via (gradient)

via-slate-400

To (gradient)

to-slate-400

Placeholder

placeholder-slate-400

Caret

caret-slate-400

Accent

accent-slate-400

Decoration

decoration-slate-400

Shadow Color

shadow-slate-400

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'slate-400': '#94a3b8', }, }, }, };

CSS Equivalent

/* Hex */
background-color: #94A3B8;

/* RGB */
background-color: rgb(148, 163, 184);

/* HSL */
background-color: hsl(215, 20%, 65%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.711 0.035 257);

/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-slate-400);

/* Gradient example */
background: linear-gradient(135deg, #f8fafc 0%, #64748b 100%);

OKLCH — Modern Color Space

Lightness (L)

0.711

71% perceived brightness

Chroma (C)

0.035

Color intensity / saturation

Hue (H)

257°

Angle on perceptual hue wheel

oklch(0.711 0.035 257)

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

Mid-tone accent

Shade 400 of the Slate palette

Recommended Uses

  • Icon fills on white
  • Secondary buttons (large text)
  • Chart & data visualization bars
  • Decorative UI elements

Avoid

Body text on white — often fails WCAG AA for normal text.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #94A3B8

Frequently Asked Questions

What is the hex code for Tailwind Slate 400?
Tailwind Slate 400 has the hex code #94A3B8. Its RGB value is rgb(148, 163, 184) and its HSL value is hsl(215, 20%, 65%).
What Tailwind utility classes use Slate 400?
Use bg-slate-400 for backgrounds, text-slate-400 for text color, border-slate-400 for borders, and ring-slate-400 for focus rings. In Tailwind v4 the CSS variable var(--color-slate-400) is available natively.
Is Tailwind Slate 400 WCAG accessible?
Tailwind Slate 400 achieves a 2.56:1 contrast ratio on white (Fail) and 8.19:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Slate 400?
Tailwind Slate 400 in OKLCH is oklch(0.711 0.035 257) — lightness 0.711, chroma 0.035, hue 257°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Slate 400 used for?
At shade 400, Tailwind Slate 400 is best described as "Mid-tone accent". Recommended uses: Icon fills on white, Secondary buttons (large text), Chart & data visualization bars.