Skip to main content

bg-zinc-300

Tailwind Zinc 300

#D4D4D8·Zinc family·Shade 300

Color Values

HEX
#D4D4D8
RGB
rgb(212, 212, 216)
HSL
hsl(240, 5%, 84%)
OKLCH
oklch(0.871 0.005 286)
CMYK
cmyk(2%, 2%, 0%, 15%)
CSS Variable
var(--color-zinc-300)
Tailwind Class
bg-zinc-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.21:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-zinc-300

Text

text-zinc-300

Border

border-zinc-300

Ring

ring-zinc-300

Outline

outline-zinc-300

Fill

fill-zinc-300

Stroke

stroke-zinc-300

From (gradient)

from-zinc-300

Via (gradient)

via-zinc-300

To (gradient)

to-zinc-300

Placeholder

placeholder-zinc-300

Caret

caret-zinc-300

Accent

accent-zinc-300

Decoration

decoration-zinc-300

Shadow Color

shadow-zinc-300

Tailwind v3 Config (extend custom color)

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

CSS Equivalent

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

/* RGB */
background-color: rgb(212, 212, 216);

/* HSL */
background-color: hsl(240, 5%, 84%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.871 0.005 286);

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

/* Gradient example */
background: linear-gradient(135deg, #fafafa 0%, #a1a1aa 100%);

OKLCH — Modern Color Space

Lightness (L)

0.871

87% perceived brightness

Chroma (C)

0.005

Color intensity / saturation

Hue (H)

286°

Angle on perceptual hue wheel

oklch(0.871 0.005 286)

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 Zinc 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 — #D4D4D8

Frequently Asked Questions

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