#51131C#51131C

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

Color values

HEX#51131C
RGBrgb(81, 19, 28)
HSLhsl(351, 62%, 20%)
HSVhsv(351, 77%, 32%)
CMYKcmyk(0%, 76.5%, 65.4%, 68.2%)
CIE-LABlab(16.99, 29.33, 10.70)
CIE-LCHlch(16.99, 31.22, 20.04°)
OKLaboklab(29.58% 0.0878 0.0262)
OKLCHoklch(29.58% 0.092 16.6)
XYZxyz(3.8362, 2.2995, 1.3402)
Luminance0.0230 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51131C #135148
analogous
#51133B #51131C #512913
triadic
#51131C #1C5113 #131C51
tetradic
#51131C #3B5113 #135148 #291351
square
#51131C #3B5113 #135148 #291351
split-complementary
#51131C #135129 #133B51
monochromatic
#190609 #1F070B #51131C #831F2D #B42A3E

Accessibility & contrast

On white

14.39
#51131C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51131C
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51131C#FFFFFF#000000##FFFFFF
##51131C1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23221C
Deuteranopia (green-blind)
#332F1A
Tritanopia (blue-blind)
#590417
Achromatopsia (no color)
#2A2A2A

Design tokens & code

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

Semantic roles & 50–950 ramp

primary
#51131C
secondary
#368A7D
accent
#E5CE43
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51131C

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

Preview Lab → · Contrast checker → · Palette generator →

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