Skip to main content

bg-neutral-700

Tailwind Neutral 700

#404040·Neutral family·Shade 700

Color Values

HEX
#404040
RGB
rgb(64, 64, 64)
HSL
hsl(0, 0%, 25%)
OKLCH
oklch(0.371 0.000 0)
CMYK
cmyk(0%, 0%, 0%, 75%)
CSS Variable
var(--color-neutral-700)
Tailwind Class
bg-neutral-700

Accessibility Score

60/100

Good

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

On White

10.37:1

AAA

On Black

2.03:1

Fail
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-neutral-700

Text

text-neutral-700

Border

border-neutral-700

Ring

ring-neutral-700

Outline

outline-neutral-700

Fill

fill-neutral-700

Stroke

stroke-neutral-700

From (gradient)

from-neutral-700

Via (gradient)

via-neutral-700

To (gradient)

to-neutral-700

Placeholder

placeholder-neutral-700

Caret

caret-neutral-700

Accent

accent-neutral-700

Decoration

decoration-neutral-700

Shadow Color

shadow-neutral-700

Tailwind v3 Config (extend custom color)

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

CSS Equivalent

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

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

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

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

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

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

OKLCH — Modern Color Space

Lightness (L)

0.371

37% perceived brightness

Chroma (C)

0.000

Color intensity / saturation

Hue (H)

Angle on perceptual hue wheel

oklch(0.371 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

Dark accent & pressed state

Shade 700 of the Neutral palette

Recommended Uses

  • Pressed/active button states
  • Text links on white
  • Dark-mode primary buttons
  • Table headers
  • Strong UI accents

Avoid

Text on black — contrast is too low for dark mode text.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #404040

Frequently Asked Questions

What is the hex code for Tailwind Neutral 700?
Tailwind Neutral 700 has the hex code #404040. Its RGB value is rgb(64, 64, 64) and its HSL value is hsl(0, 0%, 25%).
What Tailwind utility classes use Neutral 700?
Use bg-neutral-700 for backgrounds, text-neutral-700 for text color, border-neutral-700 for borders, and ring-neutral-700 for focus rings. In Tailwind v4 the CSS variable var(--color-neutral-700) is available natively.
Is Tailwind Neutral 700 WCAG accessible?
Tailwind Neutral 700 achieves a 10.37:1 contrast ratio on white (AAA) and 2.03:1 on black (Fail). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Neutral 700?
Tailwind Neutral 700 in OKLCH is oklch(0.371 0.000 0) — lightness 0.371, chroma 0.000, hue 0°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Neutral 700 used for?
At shade 700, Tailwind Neutral 700 is best described as "Dark accent & pressed state". Recommended uses: Pressed/active button states, Text links on white, Dark-mode primary buttons.