#51181B#51181B

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

Color values

HEX#51181B
RGBrgb(81, 24, 27)
HSLhsl(357, 54%, 21%)
HSVhsv(357, 70%, 32%)
CMYKcmyk(0%, 70.4%, 66.7%, 68.2%)
CIE-LABlab(17.84, 26.87, 12.52)
CIE-LCHlch(17.84, 29.64, 24.98°)
OKLaboklab(30.21% 0.0797 0.0303)
OKLCHoklch(30.21% 0.085 20.8)
XYZxyz(3.9182, 2.4823, 1.3095)
Luminance0.0248 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51181B #18514E
analogous
#511837 #51181B #513118
triadic
#51181B #1B5118 #181B51
tetradic
#51181B #375118 #18514E #311851
square
#51181B #375118 #18514E #311851
split-complementary
#51181B #185131 #183751
monochromatic
#180708 #220A0B #51181B #80262B #AF343A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51181B#FFFFFF#000000##FFFFFF
##51181B1.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)
#27241B
Deuteranopia (green-blind)
#35301A
Tritanopia (blue-blind)
#590C1A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

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

Semantic roles & 50–950 ramp

primary
#51181B
secondary
#3D8884
accent
#DED64A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51181B

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

Preview Lab → · Contrast checker → · Palette generator →

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