Skip to content

#ba331b

a dark, vivid red · warm · closest name: Firebrick

RGB
186, 51, 27
HSL
9°, 75%, 42%
CMYK
0, 73, 86, 27
Luminance
0.1289

At a glance

Every number on this page in one read: what #ba331b is made of, how bright it looks, and which way it leans.

Hex
#ba331b
Hue
red
Saturation
75%
vivid
Lightness
42%
dark
Brightness
73%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1289
WCAG relative
Temperature
Warm
12/100 cool
Color family
Red
Tone
Vivid
Best ink
White
5.87:1
Closest name
Firebrick
ΔE2000 5.5
Where it sits
Hue9° of 360°
Saturation75%
Lightness42%
Temperature
Warm ← → Cool12% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#ba331b
RGBrgb(186, 51, 27)
HSLhsl(9, 75%, 42%)
CMYKcmyk(0%, 73%, 86%, 27%)
LABlab(42.6 52.7 45.1)
LCHlch(42.6 69.3 40.5)
OKLCHoklch(0.525 0.175 32.4)
Decimal12202779
Display P3color(display-p3 0.729 0.200 0.106)

Copy-ready code

/* CSS */
color: #ba331b;
background-color: #ba331b;
/* Tailwind (arbitrary) */
class="text-[#ba331b] bg-[#ba331b]"
/* SCSS */
$brand: #ba331b;
/* SwiftUI */
Color(red: 0.729, green: 0.200, blue: 0.106)
/* Android */
Color.parseColor("#ba331b")
/* Flutter */
Color(0xFFBA331B)
/* Python / OpenCV (BGR) */
(27, 51, 186)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #ba331b · 5.87:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.87:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.58:1
AA fail · AA large pass · AAA fail
Reading the other direction: #ba331b as text scores 5.87:1 on white and 3.58:1 on black.

Accessibility — WCAG contrast

Aa
#ba331b on white: 5.87:1
AA ✓ pass · AA-large · AAA
Aa
#ba331b on black: 3.58:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5C5216
deuteranopia · #7D6F12
tritanopia · #CD002F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba331b is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FCF4F3
#F9E9E7
#F4CFC8
#F1AA9D
#EA7F6C
#E3543B
#D63B1F
#ba331b
#8E2715
#672013
#41140C
Base = 700Lightest = 50 · #FCF4F3Darkest = 950 · #41140C
:root {
  --brand-50: #FCF4F3;
  --brand-100: #F9E9E7;
  --brand-200: #F4CFC8;
  --brand-300: #F1AA9D;
  --brand-400: #EA7F6C;
  --brand-500: #E3543B;
  --brand-600: #D63B1F;
  --brand-700: #ba331b;
  --brand-800: #8E2715;
  --brand-900: #672013;
  --brand-950: #41140C;
  --brand: #ba331b;
  --brand-ink: #ffffff;
}

Colors that work with #ba331b

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#FAF5F4
Tinted page background
Border#EDC7C0
Hairlines and dividers
Muted text#9B574B
Captions on the surface
Accent#16B6A7
Second voice, not a rival
Dark variant#6F1F10
Hover, pressed, headers
Light variant#FCECE9
Selected rows, tints
Dark surface#241614
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #ba331b

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#1BA2BA
Analogous left#BA1B52
Analogous right#BA831B
Split-complement 1#1BBA83
Split-complement 2#1B52BA
Triadic 1#1BBA33
Triadic 2#331BBA
Tetradic#52BA1B

RGB percentages

Red72.9%
Green20.0%
Blue10.6%

CMYK percentages

Cyan0.0%
Magenta72.6%
Yellow85.5%
Key (black)27.1%

Color previews

#ba331b text on a black background

contrast 3.58:1

Card sample

#ba331b text on a white background

contrast 5.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #ba331b;
Background color
Panel with #ba331b background
background-color: #ba331b;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #ba331b;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(186, 51, 27, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 51, 27, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba331b;
background: linear-gradient(135deg, #ba331b, #BA9D1B);

Monochromatic scale

Palettes built from #ba331b

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#ba331b in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Food and drinkEntertainmentRetailSport
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#ba331b, answered

What color is #ba331b?

#ba331b is a dark vivid red, closest to Firebrick (ΔE2000 5.5). It sits at 9° on the hue wheel with 75% saturation and 42% lightness, which reads as warm.

What is the RGB value of #ba331b?

rgb(186, 51, 27) — 186 red, 51 green and 27 blue out of 255, or 72.9% / 20% / 10.6% by channel.

Is #ba331b a light or a dark color?

It is a dark color. Relative luminance is 0.1289 and perceived brightness is 43%, so white text on it reaches 5.87:1.

Should I use black or white text on #ba331b?

White. It scores 5.87:1 against #ba331b, versus 3.58:1 for black — AA at any size.

What is the complementary color of #ba331b?

#1BA2BA sits directly opposite on the wheel. Softer options are the split-complements #1BBA83 and #1B52BA, which give the same contrast with far less vibration.

What colors go well with #ba331b?

For interface work: #FAF5F4 as the surface, #EDC7C0 for borders, #9B574B for secondary text, #16B6A7 as an accent and #6F1F10 for hover and pressed states. For a palette, the analogous pair #BA1B52 and #BA831B stays calm, while #1BA2BA is the loudest partner.

What is #ba331b in CMYK for printing?

cmyk(0%, 73%, 86%, 27%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #ba331b warm or cool?

Warm — it scores 12 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA4D1B; nudged cooler, #BC193C.

Work with #ba331b in the Color Lab