#51181C#51181C

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

Color values

HEX#51181C
RGBrgb(81, 24, 28)
HSLhsl(356, 54%, 21%)
HSVhsv(356, 70%, 32%)
CMYKcmyk(0%, 70.4%, 65.4%, 68.2%)
CIE-LABlab(17.86, 26.95, 11.84)
CIE-LCHlch(17.86, 29.44, 23.73°)
OKLaboklab(30.23% 0.0802 0.0288)
OKLCHoklch(30.23% 0.085 19.8)
XYZxyz(3.9299, 2.4870, 1.3715)
Luminance0.0249 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51181C #18514D
analogous
#511838 #51181C #513018
triadic
#51181C #1C5118 #181C51
tetradic
#51181C #385118 #18514D #301851
square
#51181C #385118 #18514D #301851
split-complementary
#51181C #185130 #183851
monochromatic
#180708 #220A0C #51181C #80262C #AF343D

Accessibility & contrast

On white

14.03
#51181C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51181C
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51181C#FFFFFF#000000##FFFFFF
##51181C1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26241C
Deuteranopia (green-blind)
#35301B
Tritanopia (blue-blind)
#590C1A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #51181c;
/* rgb */ color: rgb(81, 24, 28);
/* oklch */ color: oklch(30.2% 0.085 19.8);
Tailwind
colors: {
  custom: {
    50: '#865857',
    500: '#51181c',
    950: '#000000',
  },
}
SCSS
$custom: #51181c;
$custom-light: #865857;
$custom-dark: #000000;
JSON
{
  "hex": "#51181c",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 28
  },
  "hsl": {
    "h": 355.789,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30232,
    "c": 0.08521,
    "h": 19.8
  },
  "luminance": 0.02486
}

Semantic roles & 50–950 ramp

primary
#51181C
secondary
#3D8883
accent
#DED34A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51181C

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

Preview Lab → · Contrast checker → · Palette generator →

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