#B23131#B23131

#B23131 is a mid, vivid red. Relative luminance 0.119; OKLCH L 51.2% C 0.166 H 25.2°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#B23131
RGBrgb(178, 49, 49)
HSLhsl(0, 57%, 45%)
HSVhsv(0, 72%, 70%)
CMYKcmyk(0%, 72.5%, 72.5%, 30.2%)
CIE-LABlab(41.03, 51.63, 31.05)
CIE-LCHlch(41.03, 60.25, 31.03°)
OKLaboklab(51.16% 0.15 0.0708)
OKLCHoklch(51.16% 0.166 25.2)
XYZxyz(20.0150, 11.8864, 4.1455)
Luminance0.1188 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B23131 #31B2B2
analogous
#B23172 #B23131 #B27231
triadic
#B23131 #31B231 #3131B2
tetradic
#B23131 #72B231 #31B2B2 #7231B2
square
#B23131 #72B231 #31B2B2 #7231B2
split-complementary
#B23131 #31B272 #3172B2
monochromatic
#521717 #822424 #B23131 #CF5151 #DC8181

Accessibility & contrast

On white

6.22
#B23131 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#B23131 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B23131
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B23131#FFFFFF#000000##FFFFFF
##B231311.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564F30
Deuteranopia (green-blind)
#776B2D
Tritanopia (blue-blind)
#C40033
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #b23131;
/* rgb */ color: rgb(178, 49, 49);
/* oklch */ color: oklch(51.2% 0.166 25.2);
Tailwind
colors: {
  custom: {
    50: '#d17269',
    500: '#b23131',
    950: '#000000',
  },
}
SCSS
$custom: #b23131;
$custom-light: #d17269;
$custom-dark: #000000;
JSON
{
  "hex": "#b23131",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 49
  },
  "hsl": {
    "h": 0,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5116,
    "c": 0.16589,
    "h": 25.2
  },
  "luminance": 0.11883
}

Semantic roles & 50–950 ramp

primary
#B23131
secondary
#79C5C5
accent
#E0E048
background
#FDF7F6
surface
#FBEDEB
border
#D4C8C6
text
#160906
muted
#847B7A

Preview Lab

Preview with #B23131

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#B23131 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva