#51181F#51181F

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

Color values

HEX#51181F
RGBrgb(81, 24, 31)
HSLhsl(353, 54%, 21%)
HSVhsv(353, 70%, 32%)
CMYKcmyk(0%, 70.4%, 61.7%, 68.2%)
CIE-LABlab(17.93, 27.21, 9.82)
CIE-LCHlch(17.93, 28.92, 19.84°)
OKLaboklab(30.31% 0.0816 0.0243)
OKLCHoklch(30.31% 0.085 16.6)
XYZxyz(3.9677, 2.5020, 1.5701)
Luminance0.0250 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51181F #18514A
analogous
#51183B #51181F #512D18
triadic
#51181F #1F5118 #181F51
tetradic
#51181F #3B5118 #18514A #2D1851
square
#51181F #3B5118 #18514A #2D1851
split-complementary
#51181F #18512D #183B51
monochromatic
#180709 #220A0D #51181F #802631 #AF3443

Accessibility & contrast

On white

14.00
#51181F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51181F
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51181F#FFFFFF#000000##FFFFFF
##51181F1.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26241F
Deuteranopia (green-blind)
#34301E
Tritanopia (blue-blind)
#590D1B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #51181f;
/* rgb */ color: rgb(81, 24, 31);
/* oklch */ color: oklch(30.3% 0.085 16.6);
Tailwind
colors: {
  custom: {
    50: '#86585a',
    500: '#51181f',
    950: '#000000',
  },
}
SCSS
$custom: #51181f;
$custom-light: #86585a;
$custom-dark: #000000;
JSON
{
  "hex": "#51181f",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 31
  },
  "hsl": {
    "h": 352.632,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30305,
    "c": 0.08512,
    "h": 16.6
  },
  "luminance": 0.02502
}

Semantic roles & 50–950 ramp

primary
#51181F
secondary
#3D887F
accent
#DECC4A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51181F

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

Preview Lab → · Contrast checker → · Palette generator →

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