Skip to content
red · warm

#b23939

a balanced, vivid red · warm · closest name: Brown

Token name suggestion: Studio Cardinal

RGB
178, 57, 57
HSL
0°, 52%, 46%
CMYK
0, 68, 68, 30
Luminance
0.1269

#b23939 is a balanced vivid red, 0° on the wheel and 17/100 on the cool side. Put white text on it (5.94:1). As text it scores 5.94:1 on white — safe at any size. Nearest name is Brown, nearest Tailwind family is red.

hsl(0 52% 46%)rgb(178 57 57)Base step 600AA inkWarm

At a glance

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

Hex
#b23939
Hue
red
Saturation
52%
vivid
Lightness
46%
balanced
Brightness
70%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1269
WCAG relative
Temperature
Warm
17/100 cool
Color family
Red
Tone
Vivid
Best ink
White
5.94:1
Closest name
Brown
ΔE2000 4.4
Chroma
56.2
LCH, 0–130ish
OKLCH L
0.521
perceptual lightness
Tailwind
red
500 · ΔE 13.6
Web-safe
#993333
nearest of 216
Where it sits
Hue0° of 360°
Saturation52%
Lightness46%
Saturation × lightness field

Left edge is grey, right edge is full chroma; top is white, bottom is black. The dot is #b23939.

Temperature
Warm ← → Cool17% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Luminance by channel
Red75%
Green23%
Blue2%

Green carries most of what the eye calls brightness — that is why WCAG weights it 0.7152.

Every format

HEX#b23939
HEX (8-digit)#b23939ff
RGBrgb(178, 57, 57)
RGBArgba(178, 57, 57, 1)
HSLhsl(0, 52%, 46%)
HSV / HSBhsv(0, 68%, 70%)
HWBhwb(0 22% 30%)
CMYKcmyk(0%, 68%, 68%, 30%)
LABlab(42.3 48.9 27.8)
LCHlch(42.3 56.2 29.6)
OKLCHoklch(0.521 0.157 24.4)
XYZ (D65)xyz(20.56, 12.69, 5.24)
Decimal11680057
Display P3color(display-p3 0.698 0.224 0.224)
Web-safe#993333

Copy-ready code

every platformclick to select
/* CSS */
color: #b23939;
background-color: #b23939;
/* CSS custom property */
--brand: #b23939;
/* Tailwind (arbitrary) */
class="text-[#b23939] bg-[#b23939]"
/* SCSS */
$brand: #b23939;
/* SwiftUI */
Color(red: 0.698, green: 0.224, blue: 0.224)
/* UIKit */
UIColor(red: 0.698, green: 0.224, blue: 0.224, alpha: 1)
/* Android XML */
<color name="brand">#B23939</color>
/* Android Compose */
Color(0xFFB23939)
/* Flutter */
Color(0xFFB23939)
/* Python / OpenCV (BGR) */
(57, 57, 178)
/* Python / PIL (RGB) */
(178, 57, 57)
/* Java AWT */
new Color(178, 57, 57)
/* .NET */
Color.FromArgb(255, 178, 57, 57)
/* OpenGL / Unity (0–1) */
(0.6980f, 0.2235f, 0.2235f, 1f)
/* LaTeX */
\definecolor{brand}{RGB}{178,57,57}
modern cssclick to select
/* mix without leaving CSS */
background: color-mix(in oklab, #b23939 85%, white);
border-color: color-mix(in oklab, #b23939 40%, transparent);
/* theme-aware in one line */
color: light-dark(#611F1F, #EED3D3);
/* relative colour syntax */
--hover: hsl(from #b23939 h s calc(l - 7));

Design tokens

The same ramp in the four formats a team actually needs. Paste one and the whole palette lands with it.

css custom propertiesclick to select
:root {
  --brand-50: #FAF4F4;
  --brand-100: #F6EAEA;
  --brand-200: #EDCFCF;
  --brand-300: #E4AAAA;
  --brand-400: #D68080;
  --brand-500: #C95555;
  --brand-600: #b23939;
  --brand-700: #9B3131;
  --brand-800: #7C2828;
  --brand-900: #5A2020;
  --brand-950: #381414;
  --brand: #b23939;
  --brand-ink: #ffffff;
  --brand-surface: #FAF4F4;
  --brand-border: #EBC1C1;
  --brand-hover: #973030;
  --brand-pressed: #7C2828;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-surface: #241414;
    --brand-ink: #EED3D3;
  }
}
tailwind.config.jsclick to select
theme: {
  extend: {
    colors: {
      brand: {
        50: '#FAF4F4',
        100: '#F6EAEA',
        200: '#EDCFCF',
        300: '#E4AAAA',
        400: '#D68080',
        500: '#C95555',
        600: '#b23939',
        700: '#9B3131',
        800: '#7C2828',
        900: '#5A2020',
        950: '#381414',
        DEFAULT: '#b23939',
      },
    },
  },
}
scss mapclick to select
$brand: (
  '50': #FAF4F4,
  '100': #F6EAEA,
  '200': #EDCFCF,
  '300': #E4AAAA,
  '400': #D68080,
  '500': #C95555,
  '600': #b23939,
  '700': #9B3131,
  '800': #7C2828,
  '900': #5A2020,
  '950': #381414,
);
$brand-base: #b23939;
$brand-ink: #ffffff;

@function brand($step) { @return map-get($brand, $step); }
w3c design tokens (json)click to select
{
  "color": {
    "brand": {
      "50": { "$value": "#FAF4F4", "$type": "color" },
      "100": { "$value": "#F6EAEA", "$type": "color" },
      "200": { "$value": "#EDCFCF", "$type": "color" },
      "300": { "$value": "#E4AAAA", "$type": "color" },
      "400": { "$value": "#D68080", "$type": "color" },
      "500": { "$value": "#C95555", "$type": "color" },
      "600": { "$value": "#b23939", "$type": "color" },
      "700": { "$value": "#9B3131", "$type": "color" },
      "800": { "$value": "#7C2828", "$type": "color" },
      "900": { "$value": "#5A2020", "$type": "color" },
      "950": { "$value": "#381414", "$type": "color" }
    },
    "brandInk": { "$value": "#ffffff", "$type": "color" }
  }
}

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 #b23939 · 5.94:1
Use #ffffffAA at every size, AAA for large text only.
Aa
12px
Aa
16px
Aa
24px
Aa
White text · 5.94:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.54:1
AA fail · AA large pass · AAA fail
Reading the other direction: #b23939 as text scores 5.94:1 on white and 3.54:1 on black.
Best tinted ink on it, if plain black or white feels flat: #F9ECEC at 5.16:1.

Make it accessible

A contrast checker tells you that you failed. This tells you what to ship instead — same hue, same saturation, lightness moved only as far as WCAG demands.

The quick fox
#b23939 · 5.94:1
AA on whitealready passes
#b23939
The quick fox
#9F3333 · 7.01:1
AAA on white−5% L
#9F3333
The quick fox
#C64E4E · 4.60:1
AA on black+8% L
#C64E4E
The quick fox
#D57C7C · 7.00:1
AAA on black+20% L
#D57C7C

Large text — 24px regular or 18.66px bold and above — only needs 3:1, so #B23939 is enough for headings on white. Non-text elements such as icons, chart strokes and focus rings also sit at 3:1 under WCAG 2.2 (1.4.11).

Accessibility — WCAG contrast

Aa
#b23939 on white: 5.94:1
AA ✓ pass · AA-large · AAA
Aa
#b23939 on black: 3.54:1
AA ✗ fail · AA-large · AAA
Against the neutral ladder

Contrast is symmetric, so each row covers both directions: #b23939 as text on that neutral, and that neutral as text on #b23939.

NeutralRatioBoth directions
White5.94:1AaAa
Slate 505.67:1AaAa
Slate 1005.42:1AaAa
Slate 2004.82:1AaAa
Slate 3004.00:1AaAa
Slate 4002.32:1AaAa
Slate 5001.25:1AaAa
Slate 6001.28:1AaAa
Slate 7001.74:1AaAa
Slate 8002.46:1AaAa
Slate 9003.01:1AaAa
Black3.54:1AaAa
Colour vision deficiency
true color
protanopia · #5A5338
deuteranopia · #786D35
tritanopia · #C3183A

Roughly one man in twelve has some form of colour vision deficiency. If any of the three panels above is hard to tell apart from a neighbouring colour in your palette, add a shape, an icon or a label so the meaning does not rest on hue alone.

Color scale — 50 to 950

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

#FAF4F4
#F6EAEA
#EDCFCF
#E4AAAA
#D68080
#C95555
#b23939
#9B3131
#7C2828
#5A2020
#381414
Base = 600Lightest = 50 · #FAF4F4Darkest = 950 · #381414Text step on white = 600
Perceptual ramp — OKLCH

The same eleven steps expressed in OKLCH, where equal lightness numbers actually look equally spaced. HSL ramps go muddy in the yellows and washed out in the blues; this one does not. Modern browsers render it natively — the hex ramp above is the fallback.

50100200300400500600700800900950
oklch tokensclick to select
:root {
  --brand-50: oklch(0.97 0.039 24.4);
  --brand-100: oklch(0.94 0.063 24.4);
  --brand-200: oklch(0.88 0.094 24.4);
  --brand-300: oklch(0.80 0.123 24.4);
  --brand-400: oklch(0.72 0.145 24.4);
  --brand-500: oklch(0.64 0.157 24.4);
  --brand-600: oklch(0.56 0.157 24.4);
  --brand-700: oklch(0.48 0.148 24.4);
  --brand-800: oklch(0.40 0.132 24.4);
  --brand-900: oklch(0.32 0.110 24.4);
  --brand-950: oklch(0.24 0.086 24.4);
}

Colors that work with #b23939

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#FAF4F4
Tinted page background
Border#EBC1C1
Hairlines and dividers
Muted text#9B4B4B
Captions on the surface
Accent#2D9F82
Second voice, not a rival
Dark variant#611F1F
Hover, pressed, headers
Light variant#F9ECEC
Selected rows, tints
Dark surface#241414
Dark-mode background
Hover#973030
One step down in lightness
Pressed#7C2828
Two steps down
Disabled#C09C9C
Chroma pulled out
Focus ring#CE3131
Offset from the fill so it reads
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

In real components

The same eight roles, wired into the interface patterns you will actually build with them. Every state below is a computed value, not a mock-up.

Buttons and states
Save changesHoverPressedDisabled
OutlineSubtleLinkFocused
Form field
you@company.com

Focus ring uses the light variant so the field still reads as one shape.

Send me product updates
Notice
Your export is ready

The file stays available for seven days. Download it before it expires.

NewBetaDraft
Data
Storage used68%
Acme LtdActive
NorthwindTrial
GlobexActive

How to use #b23939

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
  • Chart series and data categories
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Status meaning — pair it with an icon or label, never colour alone
  • Pairing with a same-lightness hue — edges vibrate
Minimum size as text on white
Any size
Safe as a fill behind white type
Yes
Safe as a 1px border on white
Yes

Meaning and mood

What a colour in this family tends to signal, and how this particular chroma and lightness change the reading.

urgentappetisingboldphysical

Red arrives before the rest of the page does. It raises attention and appetite, which is why it runs food, sport and clearance pricing.

This is a confident chroma: strong enough to lead a brand, restrained enough to live in an interface all day. The mid lightness keeps it versatile in both themes.

Worth knowing

It is also the universal error colour. Use it as a brand accent and users may read a warning that is not there.

Reads as
  • FormalityMedium
  • EnergyMedium-high
  • Weight54/100
  • TemperatureWarm
  • ApproachabilityHigh

Colour associations are cultural and vary by market. Treat these as a starting point for a conversation with your audience, not a finding about them.

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#39B2B2
Analogous left#B23976
Analogous right#B27639
Split-complement 1#39B276
Split-complement 2#3976B2
Triadic 1#39B239
Triadic 2#3939B2
Tetradic#76B239
On the wheel
Base+30°−30°+120°+240°+180°0°

#b23939 sits at 0°. Every dot is a harmony position and links to its own page in the table alongside.

RGB percentages

Red69.8%
Green22.4%
Blue22.4%
R · 0–255
178
0xb2
G · 0–255
57
0x39
B · 0–255
57
0x39

CMYK percentages

Cyan0.0%
Magenta68.0%
Yellow68.0%
Key (black)30.2%

Total ink coverage is 166%. Most commercial presses cap around 300% — above that, sheets stop drying properly.

Color previews

#b23939 text on a black background

contrast 3.54:1

Card sample

#b23939 text on a white background

contrast 5.94:1

Card sample

#b23939 on grey

5.42:1

#b23939 on its own surface

5.46:1

#b23939 on its dark surface

2.98:1

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Gradient headline

background: linear-gradient(90deg, #b23939, #B2A839);
-webkit-background-clip: text;
color: transparent;
Focus ring
Focused control
outline: 2px solid #b23939;
outline-offset: 3px;
Underline & caret

Marked up text

text-decoration-color: #b23939;
caret-color: #b23939;
Left rule
Pull quote or callout
border-left: 4px solid #b23939;
Ring + tint
Selected chip
background: #F9ECEC;
box-shadow: inset 0 0 0 2px #b23939;
Conic badge
68%
background: conic-gradient(#b23939 68%, #e2e8f0 0);

Transparency

What each alpha value actually composites to. The top row is #b23939 over white; the bottom row is the same alpha over a checkerboard, so you can see what survives on a photo or a video.

Bottom row of hexes is the flattened result over white — use those when a design tool refuses transparency, or when you need a solid fallback.

alpha in every syntaxclick to select
rgba(178, 57, 57, 0.5)
rgb(178 57 57 / 50%)
#b2393980
hsl(0 52% 46% / 50%)
color-mix(in srgb, #b23939 50%, transparent)
Alpha8-digit hexFlat on white
10%#b239391a#F7EBEB
20%#b2393933#F0D7D7
40%#b2393966#E0B0B0
60%#b2393999#D18888
80%#b23939cc#C16161

Gradients from #b23939

Six recipes, each built from this hex and shown with the exact CSS that produced it.

Elevation
Same hue, three lightnesses — safe anywhere
background: linear-gradient(135deg, #CB5D5D, #b23939 45%, #611F1F);
Duotone
A short hue run reads richer than a flat fill
background: linear-gradient(120deg, #b23939, #9B8132);
Complement sweep
Loud — keep it behind large type only
background: linear-gradient(90deg, #b23939, #39B2B2);
Spotlight
Hero panels and app headers
background: radial-gradient(120% 120% at 20% 0%, #D37474 0%, #b23939 45%, #611F1F 100%);
Soft wash
Section backgrounds that stay readable
background: linear-gradient(180deg, #FAF4F4, #ffffff);
Mesh
Ambient background, no image weight
background: radial-gradient(60% 60% at 15% 20%, #C95599 0%, transparent 60%), radial-gradient(55% 55% at 85% 15%, #C48F46 0%, transparent 60%), radial-gradient(70% 70% at 50% 95%, #611F1F 0%, transparent 65%), #b23939;

Monochromatic scale

Palettes built from #b23939

Shades — darker

Tints — lighter

Tones — desaturated

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.

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

On screens

Holds up across typical panel gamma. Still worth checking on an uncalibrated laptop, where mid-tones shift most.

In dark mode

Too dim on dark surfaces at 3.54:1 — lift it to #C64E4E for body text, or reserve it for fills.

Explore nearby colors

Small, deliberate steps away from this hex — useful when you are hunting for the version of a colour that finally feels right.

#b23939, answered

What color is #b23939?

#b23939 is a balanced vivid red, closest to Brown (ΔE2000 4.4). It sits at 0° on the hue wheel with 52% saturation and 46% lightness, which reads as warm.

What is the RGB value of #b23939?

rgb(178, 57, 57) — 178 red, 57 green and 57 blue out of 255, or 69.8% / 22.4% / 22.4% by channel.

What is #b23939 in HSL and HSV?

hsl(0, 52%, 46%) and hsv(0, 68%, 70%). HSL is what CSS takes; HSV is what your design tool's picker shows, which is why the saturation numbers rarely match.

Is #b23939 a light or a dark color?

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

Should I use black or white text on #b23939?

White. It scores 5.94:1 against #b23939, versus 3.54:1 for black — AA at any size.

Is #b23939 accessible on a white background?

#b23939 on white scores 5.94:1, which clears AA at every size but not AAA.

What is the complementary color of #b23939?

#39B2B2 sits directly opposite on the wheel. Softer options are the split-complements #39B276 and #3976B2, which give the same contrast with far less vibration.

What colors go well with #b23939?

For interface work: #FAF4F4 as the surface, #EBC1C1 for borders, #9B4B4B for secondary text, #2D9F82 as an accent and #611F1F for hover and pressed states. For a palette, the analogous pair #B23976 and #B27639 stays calm, while #39B2B2 is the loudest partner.

What is #b23939 in CMYK for printing?

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

Is #b23939 warm or cool?

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

Which Tailwind color is closest to #b23939?

The red family — its 500 step is #ef4444, ΔE2000 13.6 away. That is a visible difference, so define #b23939 as a custom token rather than reaching for the built-in.

How do I use #b23939 in Tailwind CSS?

Inline it as an arbitrary value with bg-[#b23939] or text-[#b23939], or register the whole ramp under theme.extend.colors.brand so you get bg-brand-500 and friends. The generated 50–950 scale on this page is ready to paste into your config.

What is #b23939 with 50% opacity?

rgba(178, 57, 57, 0.5), or #b2393980 in eight-digit hex. Over white that composites to #D99C9C; over black, #591D1D.

Is #b23939 a web-safe color?

No. The nearest web-safe colour is #993333, ΔE2000 5.4 away. The palette only matters for legacy displays and some email clients now.

What does the color #b23939 mean?

As a red, it reads urgent, appetising, bold. Red arrives before the rest of the page does. It raises attention and appetite, which is why it runs food, sport and clearance pricing. At this chroma the effect is amplified — it will dominate whatever sits beside it.

What gradient works with #b23939?

The safest is same-hue elevation: linear-gradient(135deg, #CB5D5D, #b23939 45%, #611F1F). For more colour, a short hue run to #9B8132 keeps it rich without turning muddy.

Work with #b23939 in the Color Lab

Every tool opens with this colour already loaded.

Every value on this page is computed from #b23939 at request time — conversions, contrast ratios and ΔE distances are calculated, never looked up.