Skip to main content

bg-indigo-900

Tailwind Indigo 900

#312E81·Indigo family·Shade 900

Color Values

HEX
#312E81
RGB
rgb(49, 46, 129)
HSL
hsl(242, 47%, 34%)
OKLCH
oklch(0.359 0.135 279)
CMYK
cmyk(62%, 64%, 0%, 49%)
CSS Variable
var(--color-indigo-900)
Tailwind Class
bg-indigo-900

Accessibility Score

60/100

Good

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

On White

11.42:1

AAA

On Black

1.84:1

Fail
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-indigo-900

Text

text-indigo-900

Border

border-indigo-900

Ring

ring-indigo-900

Outline

outline-indigo-900

Fill

fill-indigo-900

Stroke

stroke-indigo-900

From (gradient)

from-indigo-900

Via (gradient)

via-indigo-900

To (gradient)

to-indigo-900

Placeholder

placeholder-indigo-900

Caret

caret-indigo-900

Accent

accent-indigo-900

Decoration

decoration-indigo-900

Shadow Color

shadow-indigo-900

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'indigo-900': '#312e81', }, }, }, };

CSS Equivalent

/* Hex */
background-color: #312E81;

/* RGB */
background-color: rgb(49, 46, 129);

/* HSL */
background-color: hsl(242, 47%, 34%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.359 0.135 279);

/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-indigo-900);

/* Gradient example */
background: linear-gradient(135deg, #eef2ff 0%, #1e1b4b 100%);

OKLCH — Modern Color Space

Lightness (L)

0.359

36% perceived brightness

Chroma (C)

0.135

Color intensity / saturation

Hue (H)

279°

Angle on perceptual hue wheel

oklch(0.359 0.135 279)

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

Strong dark tone

Shade 900 of the Indigo palette

Recommended Uses

  • Body text on white
  • Dark panel backgrounds
  • Near-dark UI elements
  • Footer backgrounds
  • High-contrast headings

Avoid

On dark backgrounds — contrast will be insufficient.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #312E81

Frequently Asked Questions

What is the hex code for Tailwind Indigo 900?
Tailwind Indigo 900 has the hex code #312E81. Its RGB value is rgb(49, 46, 129) and its HSL value is hsl(242, 47%, 34%).
What Tailwind utility classes use Indigo 900?
Use bg-indigo-900 for backgrounds, text-indigo-900 for text color, border-indigo-900 for borders, and ring-indigo-900 for focus rings. In Tailwind v4 the CSS variable var(--color-indigo-900) is available natively.
Is Tailwind Indigo 900 WCAG accessible?
Tailwind Indigo 900 achieves a 11.42:1 contrast ratio on white (AAA) and 1.84:1 on black (Fail). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Indigo 900?
Tailwind Indigo 900 in OKLCH is oklch(0.359 0.135 279) — lightness 0.359, chroma 0.135, hue 279°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Indigo 900 used for?
At shade 900, Tailwind Indigo 900 is best described as "Strong dark tone". Recommended uses: Body text on white, Dark panel backgrounds, Near-dark UI elements.