#51241B#51241B

#51241B is a dark, moderate red. Relative luminance 0.031; OKLCH L 32.1% C 0.070 H 32.7°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#51241B
RGBrgb(81, 36, 27)
HSLhsl(10, 50%, 21%)
HSVhsv(10, 67%, 32%)
CMYKcmyk(0%, 55.6%, 66.7%, 68.2%)
CIE-LABlab(20.40, 20.17, 15.79)
CIE-LCHlch(20.40, 25.62, 38.05°)
OKLaboklab(32.15% 0.0587 0.0377)
OKLCHoklch(32.15% 0.07 32.7)
XYZxyz(4.2224, 3.0907, 1.4109)
Luminance0.0309 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51241B #1B4851
analogous
#511B2D #51241B #513F1B
triadic
#51241B #1B5124 #241B51
tetradic
#51241B #2D511B #1B4851 #3F1B51
square
#51241B #2D511B #1B4851 #3F1B51
split-complementary
#51241B #1B513F #1B2D51
monochromatic
#170A08 #23100C #51241B #7F382A #AD4D3A

Accessibility & contrast

On white

12.98
#51241B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#51241B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51241B
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51241B#FFFFFF#000000##FFFFFF
##51241B1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2B1A
Deuteranopia (green-blind)
#3A351A
Tritanopia (blue-blind)
#591C22
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #51241b;
/* rgb */ color: rgb(81, 36, 27);
/* oklch */ color: oklch(32.1% 0.070 32.7);
Tailwind
colors: {
  custom: {
    50: '#866057',
    500: '#51241b',
    950: '#000000',
  },
}
SCSS
$custom: #51241b;
$custom-light: #866057;
$custom-dark: #000000;
JSON
{
  "hex": "#51241b",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 27
  },
  "hsl": {
    "h": 10,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32147,
    "c": 0.06981,
    "h": 32.7
  },
  "luminance": 0.0309
}

Semantic roles & 50–950 ramp

primary
#51241B
secondary
#417B87
accent
#C2DA4E
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0503
muted
#7D7978

Preview Lab

Preview with #51241B

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

Preview Lab → · Contrast checker → · Palette generator →

#51241B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva