#51151B#51151B

#51151B is a dark, moderate red. Relative luminance 0.024; OKLCH L 29.8% C 0.089 H 18.8°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#51151B
RGBrgb(81, 21, 27)
HSLhsl(354, 59%, 20%)
HSVhsv(354, 74%, 32%)
CMYKcmyk(0%, 74.1%, 66.7%, 68.2%)
CIE-LABlab(17.30, 28.33, 11.82)
CIE-LCHlch(17.30, 30.70, 22.64°)
OKLaboklab(29.81% 0.0844 0.0287)
OKLCHoklch(29.81% 0.089 18.8)
XYZxyz(3.8597, 2.3653, 1.2900)
Luminance0.0237 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51151B #15514B
analogous
#511539 #51151B #512D15
triadic
#51151B #1B5115 #151B51
tetradic
#51151B #395115 #15514B #2D1551
square
#51151B #395115 #15514B #2D1551
split-complementary
#51151B #15512D #153951
monochromatic
#180608 #20080B #51151B #82222B #B22E3B

Accessibility & contrast

On white

14.26
#51151B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#51151B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51151B
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51151B#FFFFFF#000000##FFFFFF
##51151B1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25231B
Deuteranopia (green-blind)
#342F19
Tritanopia (blue-blind)
#590718
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #51151b;
/* rgb */ color: rgb(81, 21, 27);
/* oklch */ color: oklch(29.8% 0.089 18.8);
Tailwind
colors: {
  custom: {
    50: '#875757',
    500: '#51151b',
    950: '#000000',
  },
}
SCSS
$custom: #51151b;
$custom-light: #875757;
$custom-dark: #000000;
JSON
{
  "hex": "#51151b",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 27
  },
  "hsl": {
    "h": 354,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.29805,
    "c": 0.08911,
    "h": 18.8
  },
  "luminance": 0.02365
}

Semantic roles & 50–950 ramp

primary
#51151B
secondary
#398981
accent
#E2D246
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51151B

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

Preview Lab → · Contrast checker → · Palette generator →

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