#51151F#51151F

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

Color values

HEX#51151F
RGBrgb(81, 21, 31)
HSLhsl(350, 59%, 20%)
HSVhsv(350, 74%, 32%)
CMYKcmyk(0%, 74.1%, 61.7%, 68.2%)
CIE-LABlab(17.39, 28.67, 9.09)
CIE-LCHlch(17.39, 30.07, 17.60°)
OKLaboklab(29.9% 0.0862 0.0226)
OKLCHoklch(29.9% 0.089 14.7)
XYZxyz(3.9092, 2.3851, 1.5506)
Luminance0.0238 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51151F #155147
analogous
#51153D #51151F #512915
triadic
#51151F #1F5115 #151F51
tetradic
#51151F #3D5115 #155147 #291551
square
#51151F #3D5115 #155147 #291551
split-complementary
#51151F #155129 #153D51
monochromatic
#180609 #20080C #51151F #822232 #B22E44

Accessibility & contrast

On white

14.22
#51151F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#51151F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51151F
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51151F#FFFFFF#000000##FFFFFF
##51151F1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24231F
Deuteranopia (green-blind)
#332F1D
Tritanopia (blue-blind)
#590819
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #51151f;
/* rgb */ color: rgb(81, 21, 31);
/* oklch */ color: oklch(29.9% 0.089 14.7);
Tailwind
colors: {
  custom: {
    50: '#86575a',
    500: '#51151f',
    950: '#000000',
  },
}
SCSS
$custom: #51151f;
$custom-light: #86575a;
$custom-dark: #000000;
JSON
{
  "hex": "#51151f",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 31
  },
  "hsl": {
    "h": 350,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.29904,
    "c": 0.08913,
    "h": 14.7
  },
  "luminance": 0.02385
}

Semantic roles & 50–950 ramp

primary
#51151F
secondary
#39897C
accent
#E2C846
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51151F

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

Preview Lab → · Contrast checker → · Palette generator →

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