Skip to content

#ba151e

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

RGB
186, 21, 30
HSL
357°, 80%, 41%
CMYK
0, 89, 84, 27
Luminance
0.1107

At a glance

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

Hex
#ba151e
Hue
357°
red
Saturation
80%
electric
Lightness
41%
dark
Brightness
73%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1107
WCAG relative
Temperature
Warm
18/100 cool
Color family
Red
Tone
Electric
Best ink
White
6.53:1
Closest name
Firebrick
ΔE2000 1.5
Where it sits
Hue357° of 360°
Saturation80%
Lightness41%
Temperature
Warm ← → Cool18% 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#ba151e
RGBrgb(186, 21, 30)
HSLhsl(357, 80%, 41%)
CMYKcmyk(0%, 89%, 84%, 27%)
LABlab(39.7 61.0 41.0)
LCHlch(39.7 73.5 33.9)
OKLCHoklch(0.504 0.195 26.2)
Decimal12195102
Display P3color(display-p3 0.729 0.082 0.118)

Copy-ready code

/* CSS */
color: #ba151e;
background-color: #ba151e;
/* Tailwind (arbitrary) */
class="text-[#ba151e] bg-[#ba151e]"
/* SCSS */
$brand: #ba151e;
/* SwiftUI */
Color(red: 0.729, green: 0.082, blue: 0.118)
/* Android */
Color.parseColor("#ba151e")
/* Flutter */
Color(0xFFBA151E)
/* Python / OpenCV (BGR) */
(30, 21, 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 #ba151e · 6.53:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.53:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.21:1
AA fail · AA large pass · AAA fail
Reading the other direction: #ba151e as text scores 6.53:1 on white and 3.21:1 on black.

Accessibility — WCAG contrast

Aa
#ba151e on white: 6.53:1
AA ✓ pass · AA-large · AAA
Aa
#ba151e on black: 3.21:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #50471C
deuteranopia · #776A14
tritanopia · #CD001C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba151e 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.

#FCF3F3
#F9E6E7
#F5C7C9
#F49A9F
#EE686F
#E8353F
#DC1924
#ba151e
#931118
#6A1015
#420A0D
Base = 700Lightest = 50 · #FCF3F3Darkest = 950 · #420A0D
:root {
  --brand-50: #FCF3F3;
  --brand-100: #F9E6E7;
  --brand-200: #F5C7C9;
  --brand-300: #F49A9F;
  --brand-400: #EE686F;
  --brand-500: #E8353F;
  --brand-600: #DC1924;
  --brand-700: #ba151e;
  --brand-800: #931118;
  --brand-900: #6A1015;
  --brand-950: #420A0D;
  --brand: #ba151e;
  --brand-ink: #ffffff;
}

Colors that work with #ba151e

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#FAF4F5
Tinted page background
Border#EDC0C2
Hairlines and dividers
Muted text#9B4B4F
Captions on the surface
Accent#11BB87
Second voice, not a rival
Dark variant#730D13
Hover, pressed, headers
Light variant#FCE8E9
Selected rows, tints
Dark surface#241415
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 #ba151e

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#15BAB1
Analogous left#BA1571
Analogous right#BA5E15
Split-complement 1#15BA5E
Split-complement 2#1571BA
Triadic 1#1EBA15
Triadic 2#151EBA
Tetradic#71BA15

RGB percentages

Red72.9%
Green8.2%
Blue11.8%

CMYK percentages

Cyan0.0%
Magenta88.7%
Yellow83.9%
Key (black)27.1%

Color previews

#ba151e text on a black background

contrast 3.21:1

Card sample

#ba151e text on a white background

contrast 6.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba151e

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.

#ba151e 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#ba151e, answered

What color is #ba151e?

#ba151e is a dark electric red, closest to Firebrick (ΔE2000 1.5). It sits at 357° on the hue wheel with 80% saturation and 41% lightness, which reads as warm.

What is the RGB value of #ba151e?

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

Is #ba151e a light or a dark color?

It is a dark color. Relative luminance is 0.1107 and perceived brightness is 41%, so white text on it reaches 6.53:1.

Should I use black or white text on #ba151e?

White. It scores 6.53:1 against #ba151e, versus 3.21:1 for black — AA at any size.

What is the complementary color of #ba151e?

#15BAB1 sits directly opposite on the wheel. Softer options are the split-complements #15BA5E and #1571BA, which give the same contrast with far less vibration.

What colors go well with #ba151e?

For interface work: #FAF4F5 as the surface, #EDC0C2 for borders, #9B4B4F for secondary text, #11BB87 as an accent and #730D13 for hover and pressed states. For a palette, the analogous pair #BA1571 and #BA5E15 stays calm, while #15BAB1 is the loudest partner.

What is #ba151e in CMYK for printing?

cmyk(0%, 89%, 84%, 27%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #ba151e warm or cool?

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

Work with #ba151e in the Color Lab