Skip to content

#cb331b

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

RGB
203, 51, 27
HSL
8°, 77%, 45%
CMYK
0, 75, 87, 20
Luminance
0.1514

At a glance

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

Hex
#cb331b
Hue
red
Saturation
77%
electric
Lightness
45%
balanced
Brightness
80%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1514
WCAG relative
Temperature
Warm
12/100 cool
Color family
Red
Tone
Electric
Best ink
White
5.21:1
Closest name
Firebrick
ΔE2000 7.8
Where it sits
Hue8° of 360°
Saturation77%
Lightness45%
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#cb331b
RGBrgb(203, 51, 27)
HSLhsl(8, 77%, 45%)
CMYKcmyk(0%, 75%, 87%, 20%)
LABlab(45.8 58.1 49.1)
LCHlch(45.8 76.1 40.2)
OKLCHoklch(0.555 0.192 31.8)
Decimal13316891
Display P3color(display-p3 0.796 0.200 0.106)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#cb331b on white: 5.21:1
AA ✓ pass · AA-large · AAA
Aa
#cb331b on black: 4.03:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #635715
deuteranopia · #887910
tritanopia · #E00030

Color scale — 50 to 950

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

#FCF4F3
#F9E9E7
#F4CEC8
#F2A89C
#EB7C6A
#E55039
#cb331b
#B42D18
#902413
#681E12
#41130B
Base = 600Lightest = 50 · #FCF4F3Darkest = 950 · #41130B
:root {
  --brand-50: #FCF4F3;
  --brand-100: #F9E9E7;
  --brand-200: #F4CEC8;
  --brand-300: #F2A89C;
  --brand-400: #EB7C6A;
  --brand-500: #E55039;
  --brand-600: #cb331b;
  --brand-700: #B42D18;
  --brand-800: #902413;
  --brand-900: #681E12;
  --brand-950: #41130B;
  --brand: #cb331b;
  --brand-ink: #ffffff;
}

Colors that work with #cb331b

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#9B564B
Captions on the surface
Accent#13B9A6
Second voice, not a rival
Dark variant#711C0F
Hover, pressed, headers
Light variant#FCEBE8
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 #cb331b

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
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • 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#1BB3CB
Analogous left#CB1B5B
Analogous right#CB8B1B
Split-complement 1#1BCB8B
Split-complement 2#1B5BCB
Triadic 1#1BCB33
Triadic 2#331BCB
Tetradic#5BCB1B

RGB percentages

Red79.6%
Green20.0%
Blue10.6%

CMYK percentages

Cyan0.0%
Magenta74.9%
Yellow86.7%
Key (black)20.4%

Color previews

#cb331b text on a black background

contrast 4.03:1

Card sample

#cb331b text on a white background

contrast 5.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb331b

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.

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

#cb331b, answered

What color is #cb331b?

#cb331b is a balanced electric red, closest to Firebrick (ΔE2000 7.8). It sits at 8° on the hue wheel with 77% saturation and 45% lightness, which reads as warm.

What is the RGB value of #cb331b?

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

Is #cb331b a light or a dark color?

It is a dark color. Relative luminance is 0.1514 and perceived brightness is 46%, so white text on it reaches 5.21:1.

Should I use black or white text on #cb331b?

White. It scores 5.21:1 against #cb331b, versus 4.03:1 for black — AA at any size.

What is the complementary color of #cb331b?

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

What colors go well with #cb331b?

For interface work: #FAF5F4 as the surface, #EDC6C0 for borders, #9B564B for secondary text, #13B9A6 as an accent and #711C0F for hover and pressed states. For a palette, the analogous pair #CB1B5B and #CB8B1B stays calm, while #1BB3CB is the loudest partner.

What is #cb331b in CMYK for printing?

cmyk(0%, 75%, 87%, 20%). 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 #cb331b 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 #CB501B; nudged cooler, #CD1942.

Work with #cb331b in the Color Lab