Skip to main content

bg-gray-950

Tailwind Gray 950

#030712·Gray family·Shade 950

Color Values

HEX
#030712
RGB
rgb(3, 7, 18)
HSL
hsl(224, 71%, 4%)
OKLCH
oklch(0.130 0.027 262)
CMYK
cmyk(83%, 61%, 0%, 93%)
CSS Variable
var(--color-gray-950)
Tailwind Class
bg-gray-950

Accessibility Score

60/100

Good

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

On White

20.13:1

AAA

On Black

1.04:1

Fail
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-gray-950

Text

text-gray-950

Border

border-gray-950

Ring

ring-gray-950

Outline

outline-gray-950

Fill

fill-gray-950

Stroke

stroke-gray-950

From (gradient)

from-gray-950

Via (gradient)

via-gray-950

To (gradient)

to-gray-950

Placeholder

placeholder-gray-950

Caret

caret-gray-950

Accent

accent-gray-950

Decoration

decoration-gray-950

Shadow Color

shadow-gray-950

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'gray-950': '#030712', }, }, }, };

CSS Equivalent

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

/* RGB */
background-color: rgb(3, 7, 18);

/* HSL */
background-color: hsl(224, 71%, 4%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.130 0.027 262);

/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-gray-950);

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

OKLCH — Modern Color Space

Lightness (L)

0.130

13% perceived brightness

Chroma (C)

0.027

Color intensity / saturation

Hue (H)

262°

Angle on perceptual hue wheel

oklch(0.130 0.027 262)

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

Ultra-dark near-black variant

Shade 950 of the Gray palette

Recommended Uses

  • Maximum-contrast text on white
  • Rich dark card backgrounds
  • Dark theme page backgrounds
  • Tinted near-black UI surfaces

Avoid

On dark or dark-gray backgrounds — near-zero contrast.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #030712

Frequently Asked Questions

What is the hex code for Tailwind Gray 950?
Tailwind Gray 950 has the hex code #030712. Its RGB value is rgb(3, 7, 18) and its HSL value is hsl(224, 71%, 4%).
What Tailwind utility classes use Gray 950?
Use bg-gray-950 for backgrounds, text-gray-950 for text color, border-gray-950 for borders, and ring-gray-950 for focus rings. In Tailwind v4 the CSS variable var(--color-gray-950) is available natively.
Is Tailwind Gray 950 WCAG accessible?
Tailwind Gray 950 achieves a 20.13:1 contrast ratio on white (AAA) and 1.04:1 on black (Fail). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Gray 950?
Tailwind Gray 950 in OKLCH is oklch(0.130 0.027 262) — lightness 0.130, chroma 0.027, hue 262°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Gray 950 used for?
At shade 950, Tailwind Gray 950 is best described as "Ultra-dark near-black variant". Recommended uses: Maximum-contrast text on white, Rich dark card backgrounds, Dark theme page backgrounds.