Skip to content

#ba331e

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

RGB
186, 51, 30
HSL
8°, 72%, 42%
CMYK
0, 73, 84, 27
Luminance
0.1290

At a glance

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

Hex
#ba331e
Hue
red
Saturation
72%
vivid
Lightness
42%
dark
Brightness
73%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1290
WCAG relative
Temperature
Warm
12/100 cool
Color family
Red
Tone
Vivid
Best ink
White
5.87:1
Closest name
Firebrick
ΔE2000 4.9
Where it sits
Hue8° of 360°
Saturation72%
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#ba331e
RGBrgb(186, 51, 30)
HSLhsl(8, 72%, 42%)
CMYKcmyk(0%, 73%, 84%, 27%)
LABlab(42.6 52.8 43.6)
LCHlch(42.6 68.5 39.6)
OKLCHoklch(0.525 0.175 31.7)
Decimal12202782
Display P3color(display-p3 0.729 0.200 0.118)

Copy-ready code

/* CSS */
color: #ba331e;
background-color: #ba331e;
/* Tailwind (arbitrary) */
class="text-[#ba331e] bg-[#ba331e]"
/* SCSS */
$brand: #ba331e;
/* SwiftUI */
Color(red: 0.729, green: 0.200, blue: 0.118)
/* Android */
Color.parseColor("#ba331e")
/* Flutter */
Color(0xFFBA331E)
/* Python / OpenCV (BGR) */
(30, 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 #ba331e · 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: #ba331e as text scores 5.87:1 on white and 3.58:1 on black.

Accessibility — WCAG contrast

Aa
#ba331e on white: 5.87:1
AA ✓ pass · AA-large · AAA
Aa
#ba331e on black: 3.58:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5C521A
deuteranopia · #7D6F16
tritanopia · #CD0030

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba331e 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
#F8E9E7
#F3CEC9
#EFA99E
#E87E6E
#E0543E
#D33A22
#ba331e
#8D2717
#662015
#40140D
Base = 700Lightest = 50 · #FCF4F3Darkest = 950 · #40140D
:root {
  --brand-50: #FCF4F3;
  --brand-100: #F8E9E7;
  --brand-200: #F3CEC9;
  --brand-300: #EFA99E;
  --brand-400: #E87E6E;
  --brand-500: #E0543E;
  --brand-600: #D33A22;
  --brand-700: #ba331e;
  --brand-800: #8D2717;
  --brand-900: #662015;
  --brand-950: #40140D;
  --brand: #ba331e;
  --brand-ink: #ffffff;
}

Colors that work with #ba331e

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#EDC6C0
Hairlines and dividers
Muted text#9B554B
Captions on the surface
Accent#18B4A2
Second voice, not a rival
Dark variant#6E1E12
Hover, pressed, headers
Light variant#FBECE9
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 #ba331e

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#1EA5BA
Analogous left#BA1E57
Analogous right#BA811E
Split-complement 1#1EBA81
Split-complement 2#1E57BA
Triadic 1#1EBA33
Triadic 2#331EBA
Tetradic#57BA1E

RGB percentages

Red72.9%
Green20.0%
Blue11.8%

CMYK percentages

Cyan0.0%
Magenta72.6%
Yellow83.9%
Key (black)27.1%

Color previews

#ba331e text on a black background

contrast 3.58:1

Card sample

#ba331e text on a white background

contrast 5.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba331e

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.

#ba331e 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.

#ba331e, answered

What color is #ba331e?

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

What is the RGB value of #ba331e?

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

Is #ba331e a light or a dark color?

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

Should I use black or white text on #ba331e?

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

What is the complementary color of #ba331e?

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

What colors go well with #ba331e?

For interface work: #FAF5F4 as the surface, #EDC6C0 for borders, #9B554B for secondary text, #18B4A2 as an accent and #6E1E12 for hover and pressed states. For a palette, the analogous pair #BA1E57 and #BA811E stays calm, while #1EA5BA is the loudest partner.

What is #ba331e in CMYK for printing?

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

Is #ba331e 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 #BA4E1E; nudged cooler, #BC1C41.

Work with #ba331e in the Color Lab