#B31A2A

Closest named color: Firebrick (#B22222). oklch(49.4% 0.185 23.1), rgb(179, 26, 42).

Aa

White text reads best on this color (6.77:1).

About this color

#B31A2A is a medium-dark, vivid red. In OKLCH its lightness is 49%, its chroma 0.185 and its hue 23°. Its hue sits on the warm side of the wheel. The nearest named color is Firebrick (#B22222), ΔE 0.013 away. White text reads best on it, at 6.77:1.

Hue familyReds
Lightnessmedium-dark (49%)
Chromavivid (0.185)
Temperaturewarm
Nearest nameFirebrick (#B22222)
Black text3.09:1
White text6.77:1

Values

HEX#B31A2A
RGBrgb(179, 26, 42)
HSLhsl(354, 75%, 40%)
OKLCHoklch(49.4% 0.185 23.1)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #B31A2A 6.77:1 AA Lc -86.6 Fine for body text
Black text on #B31A2A 3.09:1 AA large text Lc 22.5 Dividers and decoration only
#B31A2A text on white 6.77:1 AA Lc 81.5 Fine for body text
#B31A2A text on black 3.09:1 AA large text Lc -20.4 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 700.

  1. Step 50

    50

    #FEF3F2

    oklch(97.2% 0.012 23.7)

  2. Step 100

    100

    #FBE4E2

    oklch(93.7% 0.025 23.6)

  3. Step 200

    200

    #F9CDCA

    oklch(88.5% 0.05 22.7)

  4. Step 300

    300

    #F5AAA5

    oklch(80.9% 0.089 23.5)

  5. Step 400

    400

    #EC7976

    oklch(70.7% 0.143 22.9)

  6. Step 500

    500

    #E35052

    oklch(63.2% 0.183 23.2)

  7. Step 600

    600

    #CE2936

    oklch(55.5% 0.199 23.2)

  8. Step 700

    700 (this color)

    #B31A2A

    oklch(49.4% 0.185 23.1)

  9. Step 800

    800

    #901A23

    oklch(42.7% 0.152 23.2)

  10. Step 900

    900

    #741E21

    oklch(37.7% 0.12 23.2)

  11. Step 950

    950

    #441414

    oklch(27% 0.074 23.5)

Export this scale for Tailwind in the Tailwind colors tool

#B31A2A with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#4D46290.204
Deuteranopia (no green cones)#7267240.186
Tritanopia (no blue cones)#C500220.035
Achromatopsia (no color)#5B5B5B0.186

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #B31A2A

    #B31A2A

    oklch(49.4% 0.185 23.1)

  • #006F77

    #006F77

    oklch(49.4% 0.084 203.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #B31A2A

    #B31A2A

    oklch(49.4% 0.185 23.1)

  • #A91D6A

    #A91D6A

    oklch(49.4% 0.185 353.3)

  • #974900

    #974900

    oklch(49.5% 0.126 52.9)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #B31A2A

    #B31A2A

    oklch(49.4% 0.185 23.1)

  • #00735D

    #00735D

    oklch(49.5% 0.095 173.3)

  • #006A92

    #006A92

    oklch(49.4% 0.102 233.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #B31A2A

    #B31A2A

    oklch(49.4% 0.185 23.1)

  • #00770A

    #00770A

    oklch(49.4% 0.165 143.1)

  • #2457C8

    #2457C8

    oklch(49.3% 0.185 263.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #B31A2A

    #B31A2A

    oklch(49.4% 0.185 23.1)

  • #626800

    #626800

    oklch(49.5% 0.111 113.7)

  • #006F77

    #006F77

    oklch(49.4% 0.084 203.5)

  • #6A42BE

    #6A42BE

    oklch(49.4% 0.184 293.3)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #B31A2A, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #B31A2A in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.