#51181A#51181A

#51181A is a dark, moderate red. Relative luminance 0.025; OKLCH L 30.2% C 0.085 H 21.8°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#51181A
RGBrgb(81, 24, 26)
HSLhsl(358, 54%, 21%)
HSVhsv(358, 70%, 32%)
CMYKcmyk(0%, 70.4%, 67.9%, 68.2%)
CIE-LABlab(17.82, 26.79, 13.19)
CIE-LCHlch(17.82, 29.86, 26.22°)
OKLaboklab(30.19% 0.0793 0.0317)
OKLCHoklch(30.19% 0.085 21.8)
XYZxyz(3.9068, 2.4777, 1.2496)
Luminance0.0248 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51181A #18514F
analogous
#511836 #51181A #513218
triadic
#51181A #1A5118 #181A51
tetradic
#51181A #365118 #18514F #321851
square
#51181A #365118 #18514F #321851
split-complementary
#51181A #185132 #183651
monochromatic
#180708 #220A0B #51181A #802629 #AF3438

Accessibility & contrast

On white

14.04
#51181A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#51181A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51181A
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51181A#FFFFFF#000000##FFFFFF
##51181A1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27241A
Deuteranopia (green-blind)
#353019
Tritanopia (blue-blind)
#590C19
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #51181a;
/* rgb */ color: rgb(81, 24, 26);
/* oklch */ color: oklch(30.2% 0.085 21.8);
Tailwind
colors: {
  custom: {
    50: '#865856',
    500: '#51181a',
    950: '#000000',
  },
}
SCSS
$custom: #51181a;
$custom-light: #865856;
$custom-dark: #000000;
JSON
{
  "hex": "#51181a",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 26
  },
  "hsl": {
    "h": 357.895,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30187,
    "c": 0.08538,
    "h": 21.8
  },
  "luminance": 0.02477
}

Semantic roles & 50–950 ramp

primary
#51181A
secondary
#3D8885
accent
#DED84A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51181A

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

Preview Lab → · Contrast checker → · Palette generator →

#51181A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva