#51242C#51242C

#51242C is a dark, moderate red. Relative luminance 0.032; OKLCH L 32.6% C 0.068 H 10.4°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#51242C
RGBrgb(81, 36, 44)
HSLhsl(349, 38%, 23%)
HSVhsv(349, 56%, 32%)
CMYKcmyk(0%, 55.6%, 45.7%, 68.2%)
CIE-LABlab(20.80, 21.97, 4.68)
CIE-LCHlch(20.80, 22.46, 12.03°)
OKLaboklab(32.58% 0.0666 0.0122)
OKLCHoklch(32.58% 0.068 10.4)
XYZxyz(4.4791, 3.1934, 2.7629)
Luminance0.0319 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51242C #245149
analogous
#512442 #51242C #513224
triadic
#51242C #2C5124 #242C51
tetradic
#51242C #425124 #245149 #322451
square
#51242C #425124 #245149 #322451
split-complementary
#51242C #245132 #244251
monochromatic
#15090C #271115 #51242C #7B3743 #A64A5A

Accessibility & contrast

On white

12.82
#51242C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#51242C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51242C
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51242C#FFFFFF#000000##FFFFFF
##51242C1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2D2C
Deuteranopia (green-blind)
#38352B
Tritanopia (blue-blind)
#581F27
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #51242c;
/* rgb */ color: rgb(81, 36, 44);
/* oklch */ color: oklch(32.6% 0.068 10.4);
Tailwind
colors: {
  custom: {
    50: '#846064',
    500: '#51242c',
    950: '#000000',
  },
}
SCSS
$custom: #51242c;
$custom-light: #846064;
$custom-dark: #000000;
JSON
{
  "hex": "#51242c",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 44
  },
  "hsl": {
    "h": 349.333,
    "s": 38.462,
    "l": 22.941
  },
  "oklch": {
    "l": 0.32579,
    "c": 0.06774,
    "h": 10.4
  },
  "luminance": 0.03193
}

Semantic roles & 50–950 ramp

primary
#51242C
secondary
#4C857B
accent
#CEBA59
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0505
muted
#7C797A

Preview Lab

Preview with #51242C

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

Preview Lab → · Contrast checker → · Palette generator →

#51242C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva