#51131F#51131F

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

Color values

HEX#51131F
RGBrgb(81, 19, 31)
HSLhsl(348, 62%, 20%)
HSVhsv(348, 77%, 32%)
CMYKcmyk(0%, 76.5%, 61.7%, 68.2%)
CIE-LABlab(17.06, 29.58, 8.64)
CIE-LCHlch(17.06, 30.82, 16.29°)
OKLaboklab(29.66% 0.0891 0.0215)
OKLCHoklch(29.66% 0.092 13.6)
XYZxyz(3.8739, 2.3145, 1.5388)
Luminance0.0231 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51131F #135145
analogous
#51133E #51131F #512613
triadic
#51131F #1F5113 #131F51
tetradic
#51131F #3E5113 #135145 #261351
square
#51131F #3E5113 #135145 #261351
split-complementary
#51131F #135126 #133E51
monochromatic
#190609 #1F070C #51131F #831F32 #B42A45

Accessibility & contrast

On white

14.36
#51131F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51131F
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51131F#FFFFFF#000000##FFFFFF
##51131F1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23221F
Deuteranopia (green-blind)
#332F1D
Tritanopia (blue-blind)
#590518
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #51131f;
/* rgb */ color: rgb(81, 19, 31);
/* oklch */ color: oklch(29.7% 0.092 13.6);
Tailwind
colors: {
  custom: {
    50: '#86565a',
    500: '#51131f',
    950: '#000000',
  },
}
SCSS
$custom: #51131f;
$custom-light: #86565a;
$custom-dark: #000000;
JSON
{
  "hex": "#51131f",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 31
  },
  "hsl": {
    "h": 348.387,
    "s": 62,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29657,
    "c": 0.0917,
    "h": 13.6
  },
  "luminance": 0.02314
}

Semantic roles & 50–950 ramp

primary
#51131F
secondary
#368A79
accent
#E5C643
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51131F

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

Preview Lab → · Contrast checker → · Palette generator →

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