Skip to main content

bg-slate-300

Tailwind Slate 300

#CBD5E1·Slate family·Shade 300

Color Values

HEX
#CBD5E1
RGB
rgb(203, 213, 225)
HSL
hsl(213, 27%, 84%)
OKLCH
oklch(0.869 0.020 253)
CMYK
cmyk(10%, 5%, 0%, 12%)
CSS Variable
var(--color-slate-300)
Tailwind Class
bg-slate-300

Accessibility Score

60/100

Good

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

On White

1.48:1

Fail

On Black

14.14:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-slate-300

Text

text-slate-300

Border

border-slate-300

Ring

ring-slate-300

Outline

outline-slate-300

Fill

fill-slate-300

Stroke

stroke-slate-300

From (gradient)

from-slate-300

Via (gradient)

via-slate-300

To (gradient)

to-slate-300

Placeholder

placeholder-slate-300

Caret

caret-slate-300

Accent

accent-slate-300

Decoration

decoration-slate-300

Shadow Color

shadow-slate-300

Tailwind v3 Config (extend custom color)

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

CSS Equivalent

/* Hex */
background-color: #CBD5E1;

/* RGB */
background-color: rgb(203, 213, 225);

/* HSL */
background-color: hsl(213, 27%, 84%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.869 0.020 253);

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

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

OKLCH — Modern Color Space

Lightness (L)

0.869

87% perceived brightness

Chroma (C)

0.020

Color intensity / saturation

Hue (H)

253°

Angle on perceptual hue wheel

oklch(0.869 0.020 253)

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

Light mid-tone accent

Shade 300 of the Slate palette

Recommended Uses

  • Secondary button outlines
  • Icon strokes on dark backgrounds
  • Progress bar fills
  • Selected state highlights

Avoid

Normal-size text on white — generally below WCAG AA threshold.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #CBD5E1

Frequently Asked Questions

What is the hex code for Tailwind Slate 300?
Tailwind Slate 300 has the hex code #CBD5E1. Its RGB value is rgb(203, 213, 225) and its HSL value is hsl(213, 27%, 84%).
What Tailwind utility classes use Slate 300?
Use bg-slate-300 for backgrounds, text-slate-300 for text color, border-slate-300 for borders, and ring-slate-300 for focus rings. In Tailwind v4 the CSS variable var(--color-slate-300) is available natively.
Is Tailwind Slate 300 WCAG accessible?
Tailwind Slate 300 achieves a 1.48:1 contrast ratio on white (Fail) and 14.14:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Slate 300?
Tailwind Slate 300 in OKLCH is oklch(0.869 0.020 253) — lightness 0.869, chroma 0.020, hue 253°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Slate 300 used for?
At shade 300, Tailwind Slate 300 is best described as "Light mid-tone accent". Recommended uses: Secondary button outlines, Icon strokes on dark backgrounds, Progress bar fills.