#51131B#51131B

#51131B is a dark, moderate red. Relative luminance 0.023; OKLCH L 29.6% C 0.092 H 17.6°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#51131B
RGBrgb(81, 19, 27)
HSLhsl(352, 62%, 20%)
HSVhsv(352, 77%, 32%)
CMYKcmyk(0%, 76.5%, 66.7%, 68.2%)
CIE-LABlab(16.96, 29.25, 11.38)
CIE-LCHlch(16.96, 31.39, 21.26°)
OKLaboklab(29.56% 0.0873 0.0277)
OKLCHoklch(29.56% 0.092 17.6)
XYZxyz(3.8244, 2.2947, 1.2782)
Luminance0.0229 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51131B #135149
analogous
#51133A #51131B #512A13
triadic
#51131B #1B5113 #131B51
tetradic
#51131B #3A5113 #135149 #2A1351
square
#51131B #3A5113 #135149 #2A1351
split-complementary
#51131B #13512A #133A51
monochromatic
#190608 #1F070A #51131B #831F2C #B42A3C

Accessibility & contrast

On white

14.40
#51131B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#51131B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51131B
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51131B#FFFFFF#000000##FFFFFF
##51131B1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23221B
Deuteranopia (green-blind)
#332F19
Tritanopia (blue-blind)
#590416
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #51131b;
/* rgb */ color: rgb(81, 19, 27);
/* oklch */ color: oklch(29.6% 0.092 17.6);
Tailwind
colors: {
  custom: {
    50: '#875657',
    500: '#51131b',
    950: '#000000',
  },
}
SCSS
$custom: #51131b;
$custom-light: #875657;
$custom-dark: #000000;
JSON
{
  "hex": "#51131b",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 27
  },
  "hsl": {
    "h": 352.258,
    "s": 62,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29556,
    "c": 0.09157,
    "h": 17.6
  },
  "luminance": 0.02294
}

Semantic roles & 50–950 ramp

primary
#51131B
secondary
#368A7F
accent
#E5D043
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51131B

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

Preview Lab → · Contrast checker → · Palette generator →

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