Skip to content

#c40c1f

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

RGB
196, 12, 31
HSL
354°, 89%, 41%
CMYK
0, 94, 84, 23
Luminance
0.1210

At a glance

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

Hex
#c40c1f
Hue
354°
red
Saturation
89%
electric
Lightness
41%
dark
Brightness
77%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1210
WCAG relative
Temperature
Warm
20/100 cool
Color family
Red
Tone
Electric
Best ink
White
6.14:1
Closest name
Firebrick
ΔE2000 3.2
Where it sits
Hue354° of 360°
Saturation89%
Lightness41%
Temperature
Warm ← → Cool20% 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#c40c1f
RGBrgb(196, 12, 31)
HSLhsl(354, 89%, 41%)
CMYKcmyk(0%, 94%, 84%, 23%)
LABlab(41.4 64.9 42.8)
LCHlch(41.4 77.7 33.4)
OKLCHoklch(0.520 0.206 25.6)
Decimal12848159
Display P3color(display-p3 0.769 0.047 0.122)

Copy-ready code

/* CSS */
color: #c40c1f;
background-color: #c40c1f;
/* Tailwind (arbitrary) */
class="text-[#c40c1f] bg-[#c40c1f]"
/* SCSS */
$brand: #c40c1f;
/* SwiftUI */
Color(red: 0.769, green: 0.047, blue: 0.122)
/* Android */
Color.parseColor("#c40c1f")
/* Flutter */
Color(0xFFC40C1F)
/* Python / OpenCV (BGR) */
(31, 12, 196)

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 #c40c1f · 6.14:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.14:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.42:1
AA fail · AA large pass · AAA fail
Reading the other direction: #c40c1f as text scores 6.14:1 on white and 3.42:1 on black.

Accessibility — WCAG contrast

Aa
#c40c1f on white: 6.14:1
AA ✓ pass · AA-large · AAA
Aa
#c40c1f on black: 3.42:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #52491D
deuteranopia · #7C6F14
tritanopia · #D90018

Color scale — 50 to 950

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

#FDF2F3
#FAE5E7
#F8C4C9
#F995A0
#F56070
#F22C40
#E70E24
#c40c1f
#9A0918
#6F0B16
#45070E
Base = 700Lightest = 50 · #FDF2F3Darkest = 950 · #45070E
:root {
  --brand-50: #FDF2F3;
  --brand-100: #FAE5E7;
  --brand-200: #F8C4C9;
  --brand-300: #F995A0;
  --brand-400: #F56070;
  --brand-500: #F22C40;
  --brand-600: #E70E24;
  --brand-700: #c40c1f;
  --brand-800: #9A0918;
  --brand-900: #6F0B16;
  --brand-950: #45070E;
  --brand: #c40c1f;
  --brand-ink: #ffffff;
}

Colors that work with #c40c1f

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#EDC0C4
Hairlines and dividers
Muted text#9B4B53
Captions on the surface
Accent#08C482
Second voice, not a rival
Dark variant#780713
Hover, pressed, headers
Light variant#FEE7E9
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 #c40c1f

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#0CC4B1
Analogous left#C40C7B
Analogous right#C4550C
Split-complement 1#0CC455
Split-complement 2#0C7BC4
Triadic 1#1FC40C
Triadic 2#0C1FC4
Tetradic#7BC40C

RGB percentages

Red76.9%
Green4.7%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta93.9%
Yellow84.2%
Key (black)23.1%

Color previews

#c40c1f text on a black background

contrast 3.42:1

Card sample

#c40c1f text on a white background

contrast 6.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c40c1f

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.

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

#c40c1f, answered

What color is #c40c1f?

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

What is the RGB value of #c40c1f?

rgb(196, 12, 31) — 196 red, 12 green and 31 blue out of 255, or 76.9% / 4.7% / 12.2% by channel.

Is #c40c1f a light or a dark color?

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

Should I use black or white text on #c40c1f?

White. It scores 6.14:1 against #c40c1f, versus 3.42:1 for black — AA at any size.

What is the complementary color of #c40c1f?

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

What colors go well with #c40c1f?

For interface work: #FAF4F5 as the surface, #EDC0C4 for borders, #9B4B53 for secondary text, #08C482 as an accent and #780713 for hover and pressed states. For a palette, the analogous pair #C40C7B and #C4550C stays calm, while #0CC4B1 is the loudest partner.

What is #c40c1f in CMYK for printing?

cmyk(0%, 94%, 84%, 23%). 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 #c40c1f warm or cool?

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

Work with #c40c1f in the Color Lab