Skip to main content

bg-neutral-300

Tailwind Neutral 300

#D4D4D4·Neutral family·Shade 300

Color Values

HEX
#D4D4D4
RGB
rgb(212, 212, 212)
HSL
hsl(0, 0%, 83%)
OKLCH
oklch(0.870 0.000 0)
CMYK
cmyk(0%, 0%, 0%, 17%)
CSS Variable
var(--color-neutral-300)
Tailwind Class
bg-neutral-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.17:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-neutral-300

Text

text-neutral-300

Border

border-neutral-300

Ring

ring-neutral-300

Outline

outline-neutral-300

Fill

fill-neutral-300

Stroke

stroke-neutral-300

From (gradient)

from-neutral-300

Via (gradient)

via-neutral-300

To (gradient)

to-neutral-300

Placeholder

placeholder-neutral-300

Caret

caret-neutral-300

Accent

accent-neutral-300

Decoration

decoration-neutral-300

Shadow Color

shadow-neutral-300

Tailwind v3 Config (extend custom color)

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

CSS Equivalent

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

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

/* HSL */
background-color: hsl(0, 0%, 83%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.870 0.000 0);

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

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

OKLCH — Modern Color Space

Lightness (L)

0.870

87% perceived brightness

Chroma (C)

0.000

Color intensity / saturation

Hue (H)

Angle on perceptual hue wheel

oklch(0.870 0.000 0)

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 Neutral 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 — #D4D4D4

Frequently Asked Questions

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