#B21F1F color

#B21F1F is rgb(178, 31, 31) in RGB and hsl(0, 70%, 41%) in HSL. The closest CSS named color is firebrick (#b22222, ΔE 0.6). Use white text on it (contrast 6.76:1).

#B21F1Fred
HEX#B21F1F
RGBrgb(178, 31, 31)
RGB percentrgb(69.8%, 12.2%, 12.2%)
HSLhsl(0, 70%, 41%)
HSV / HSBhsv(0, 83%, 70%)
CMYKcmyk(0%, 83%, 83%, 30%)
CIELAB (D65)lab(38.8 56.6 39)

Edit in the color converter → · Check contrast → · Shades →

About #B21F1F

#B21F1F is a medium-dark, saturated red with a hue angle of 0°. It belongs to the red family and reads as a warm color. In the RGB model red is the strongest channel at 178 (70%) and green the weakest at 31 (12%). Colors like this are typically used for headers, navigation bars and strong brand areas.

Color conversions

HEX#B21F1F
RGBrgb(178, 31, 31)
RGB percentrgb(69.8%, 12.2%, 12.2%)
HSLhsl(0, 70%, 41%)
HSV / HSBhsv(0, 83%, 70%)
CMYKcmyk(0%, 83%, 83%, 30%)
CIELAB (D65)lab(38.8 56.6 39)
Decimal11673375
Binary10110010 00011111 00011111

HEX B2 1F 1F → 178, 31, 31 (each pair is a base-16 number: B×16 + 2 = 178)

Color harmonies

Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.

Tints and shades of #B21F1F

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #B21F1FRatioAA normalAA largeAAA normalAAA large
White text6.76:1PassPassFailPass
Black text3.11:1FailPassFailFail
White text on #B21F1F
Black text on #B21F1F
#B21F1F text on white
#B21F1F text on black

Relative luminance is 0.1054 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.

Color blindness simulation

Protanopia
#50471d

Deuteranopia
#736717

Tritanopia
#c50022

Achromatopsia
#5b5b5b

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 38.1). Do not rely on it alone to signal status; add an icon or text label. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
firebrick#b222220.6
brown#a52a2a3.5
darkred#8b00009.2
crimson#dc143c10

CSS

.element {
  color: #b21f1f;
  background-color: rgb(178, 31, 31);
  border: 1px solid hsl(0, 70%, 41%);
  box-shadow: 0 2px 8px rgb(178 31 31 / 50%);
}
:root { --brand: #b21f1f; }

Frequently asked questions

What color is #B21F1F?
A medium-dark saturated red in the red family. Closest CSS name: firebrick.
What is #B21F1F in RGB?
rgb(178, 31, 31): red 178, green 31, blue 31.
What is the complementary color of #B21F1F?
#1FB2B2, found by rotating the hue 180°.