#B31C4F#B31C4F

#B31C4F is a mid, vivid pink. Relative luminance 0.110; OKLCH L 50.3% C 0.185 H 8.3°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#B31C4F
RGBrgb(179, 28, 79)
HSLhsl(340, 73%, 41%)
HSVhsv(340, 84%, 70%)
CMYKcmyk(0%, 84.4%, 55.9%, 29.8%)
CIE-LABlab(39.55, 60.02, 10.50)
CIE-LCHlch(39.55, 60.93, 9.92°)
OKLaboklab(50.28% 0.1827 0.0267)
OKLCHoklch(50.28% 0.185 8.3)
XYZxyz(20.4190, 10.9818, 8.4401)
Luminance0.1098 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31C4F #1CB380
analogous
#B31C9A #B31C4F #B3341C
triadic
#B31C4F #4FB31C #1C4FB3
tetradic
#B31C4F #9AB31C #1CB380 #341CB3
square
#B31C4F #9AB31C #1CB380 #341CB3
split-complementary
#B31C4F #1CB334 #1C9AB3
monochromatic
#490B20 #7E1438 #B31C4F #DE2E69 #E7638F

Accessibility & contrast

On white

6.57
#B31C4F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#B31C4F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31C4F
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31C4F#FFFFFF#000000##FFFFFF
##B31C4F1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#484A50
Deuteranopia (green-blind)
#6F684B
Tritanopia (blue-blind)
#C40034
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #b31c4f;
/* rgb */ color: rgb(179, 28, 79);
/* oklch */ color: oklch(50.3% 0.185 8.3);
Tailwind
colors: {
  custom: {
    50: '#d16b80',
    500: '#b31c4f',
    950: '#000000',
  },
}
SCSS
$custom: #b31c4f;
$custom-light: #d16b80;
$custom-dark: #000000;
JSON
{
  "hex": "#b31c4f",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 79
  },
  "hsl": {
    "h": 339.735,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50277,
    "c": 0.18467,
    "h": 8.3
  },
  "luminance": 0.10979
}

Semantic roles & 50–950 ramp

primary
#B31C4F
secondary
#5FCBA7
accent
#F0B238
background
#FDF6F7
surface
#FBECEE
border
#D4C7C9
text
#15080A
muted
#837A7C

Preview Lab

Preview with #B31C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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