#B42540#B42540

#B42540 is a mid, vivid red. Relative luminance 0.114; OKLCH L 50.7% C 0.177 H 16.5°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#B42540
RGBrgb(180, 37, 64)
HSLhsl(349, 66%, 43%)
HSVhsv(349, 79%, 71%)
CMYKcmyk(0%, 79.4%, 64.4%, 29.4%)
CIE-LABlab(40.25, 56.98, 20.97)
CIE-LCHlch(40.25, 60.72, 20.21°)
OKLaboklab(50.72% 0.1701 0.0504)
OKLCHoklch(50.72% 0.177 16.5)
XYZxyz(20.4116, 11.3997, 5.9751)
Luminance0.1140 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42540 #25B499
analogous
#B42588 #B42540 #B45125
triadic
#B42540 #40B425 #2540B4
tetradic
#B42540 #88B425 #25B499 #5125B4
square
#B42540 #88B425 #25B499 #5125B4
split-complementary
#B42540 #25B451 #2588B4
monochromatic
#4E101C #811B2E #B42540 #D73F5C #E27187

Accessibility & contrast

On white

6.40
#B42540 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#B42540 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42540
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42540#FFFFFF#000000##FFFFFF
##B425401.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4C40
Deuteranopia (green-blind)
#736A3C
Tritanopia (blue-blind)
#C60031
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #b42540;
/* rgb */ color: rgb(180, 37, 64);
/* oklch */ color: oklch(50.7% 0.177 16.5);
Tailwind
colors: {
  custom: {
    50: '#d26e74',
    500: '#b42540',
    950: '#000000',
  },
}
SCSS
$custom: #b42540;
$custom-light: #d26e74;
$custom-dark: #000000;
JSON
{
  "hex": "#b42540",
  "rgb": {
    "r": 180,
    "g": 37,
    "b": 64
  },
  "hsl": {
    "h": 348.671,
    "s": 65.899,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5072,
    "c": 0.17739,
    "h": 16.5
  },
  "luminance": 0.11397
}

Semantic roles & 50–950 ramp

primary
#B42540
secondary
#6CC9B7
accent
#E9C93F
background
#FDF7F7
surface
#FBEDED
border
#D4C8C8
text
#150808
muted
#837B7B

Preview Lab

Preview with #B42540

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

Preview Lab → · Contrast checker → · Palette generator →

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