Skip to content

#ba2d0c

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

RGB
186, 45, 12
HSL
11°, 88%, 39%
CMYK
0, 76, 94, 27
Luminance
0.1234

At a glance

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

Hex
#ba2d0c
Hue
11°
red
Saturation
88%
electric
Lightness
39%
dark
Brightness
73%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1234
WCAG relative
Temperature
Warm
10/100 cool
Color family
Red
Tone
Electric
Best ink
White
6.05:1
Closest name
Firebrick
ΔE2000 6.8
Where it sits
Hue11° of 360°
Saturation88%
Lightness39%
Temperature
Warm ← → Cool10% 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#ba2d0c
RGBrgb(186, 45, 12)
HSLhsl(11, 88%, 39%)
CMYKcmyk(0%, 76%, 94%, 27%)
LABlab(41.8 54.5 50.5)
LCHlch(41.8 74.3 42.8)
OKLCHoklch(0.519 0.182 33.4)
Decimal12201228
Display P3color(display-p3 0.729 0.176 0.047)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2d0c on white: 6.05:1
AA ✓ pass · AA-large · AAA
Aa
#ba2d0c on black: 3.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5A4F02
deuteranopia · #7C6E00
tritanopia · #CD0028

Color scale — 50 to 950

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

#FDF4F2
#FAE9E5
#F8CEC4
#F8A896
#F57D61
#F1522C
#E6380F
#ba2d0c
#99250A
#6F1F0C
#451307
Base = 700Lightest = 50 · #FDF4F2Darkest = 950 · #451307
:root {
  --brand-50: #FDF4F2;
  --brand-100: #FAE9E5;
  --brand-200: #F8CEC4;
  --brand-300: #F8A896;
  --brand-400: #F57D61;
  --brand-500: #F1522C;
  --brand-600: #E6380F;
  --brand-700: #ba2d0c;
  --brand-800: #99250A;
  --brand-900: #6F1F0C;
  --brand-950: #451307;
  --brand: #ba2d0c;
  --brand-ink: #ffffff;
}

Colors that work with #ba2d0c

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#EDC8C0
Hairlines and dividers
Muted text#9B5A4B
Captions on the surface
Accent#08C4B8
Second voice, not a rival
Dark variant#781D08
Hover, pressed, headers
Light variant#FDEBE7
Selected rows, tints
Dark surface#241714
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 #ba2d0c

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#0C99BA
Analogous left#BA0C42
Analogous right#BA840C
Split-complement 1#0CBA84
Split-complement 2#0C42BA
Triadic 1#0CBA2D
Triadic 2#2D0CBA
Tetradic#42BA0C

RGB percentages

Red72.9%
Green17.6%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta75.8%
Yellow93.5%
Key (black)27.1%

Color previews

#ba2d0c text on a black background

contrast 3.47:1

Card sample

#ba2d0c text on a white background

contrast 6.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2d0c

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.

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

#ba2d0c, answered

What color is #ba2d0c?

#ba2d0c is a dark electric red, closest to Firebrick (ΔE2000 6.8). It sits at 11° on the hue wheel with 88% saturation and 39% lightness, which reads as warm.

What is the RGB value of #ba2d0c?

rgb(186, 45, 12) — 186 red, 45 green and 12 blue out of 255, or 72.9% / 17.6% / 4.7% by channel.

Is #ba2d0c a light or a dark color?

It is a dark color. Relative luminance is 0.1234 and perceived brightness is 42%, so white text on it reaches 6.05:1.

Should I use black or white text on #ba2d0c?

White. It scores 6.05:1 against #ba2d0c, versus 3.47:1 for black — AA at any size.

What is the complementary color of #ba2d0c?

#0C99BA sits directly opposite on the wheel. Softer options are the split-complements #0CBA84 and #0C42BA, which give the same contrast with far less vibration.

What colors go well with #ba2d0c?

For interface work: #FAF5F4 as the surface, #EDC8C0 for borders, #9B5A4B for secondary text, #08C4B8 as an accent and #781D08 for hover and pressed states. For a palette, the analogous pair #BA0C42 and #BA840C stays calm, while #0C99BA is the loudest partner.

What is #ba2d0c in CMYK for printing?

cmyk(0%, 76%, 94%, 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 #ba2d0c warm or cool?

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

Work with #ba2d0c in the Color Lab