#51181D#51181D

#51181D is a dark, moderate red. Relative luminance 0.025; OKLCH L 30.3% C 0.085 H 18.7°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#51181D
RGBrgb(81, 24, 29)
HSLhsl(355, 54%, 21%)
HSVhsv(355, 70%, 32%)
CMYKcmyk(0%, 70.4%, 64.2%, 68.2%)
CIE-LABlab(17.88, 27.03, 11.17)
CIE-LCHlch(17.88, 29.25, 22.45°)
OKLaboklab(30.26% 0.0806 0.0274)
OKLCHoklch(30.26% 0.085 18.7)
XYZxyz(3.9421, 2.4918, 1.4355)
Luminance0.0249 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51181D #18514C
analogous
#511839 #51181D #512F18
triadic
#51181D #1D5118 #181D51
tetradic
#51181D #395118 #18514C #2F1851
square
#51181D #395118 #18514C #2F1851
split-complementary
#51181D #18512F #183951
monochromatic
#180708 #220A0C #51181D #80262E #AF343F

Accessibility & contrast

On white

14.02
#51181D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#51181D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51181D
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51181D#FFFFFF#000000##FFFFFF
##51181D1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26241D
Deuteranopia (green-blind)
#35301C
Tritanopia (blue-blind)
#590D1A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #51181d;
/* rgb */ color: rgb(81, 24, 29);
/* oklch */ color: oklch(30.3% 0.085 18.7);
Tailwind
colors: {
  custom: {
    50: '#865858',
    500: '#51181d',
    950: '#000000',
  },
}
SCSS
$custom: #51181d;
$custom-light: #865858;
$custom-dark: #000000;
JSON
{
  "hex": "#51181d",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 29
  },
  "hsl": {
    "h": 354.737,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30256,
    "c": 0.08515,
    "h": 18.7
  },
  "luminance": 0.02491
}

Semantic roles & 50–950 ramp

primary
#51181D
secondary
#3D8881
accent
#DED14A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51181D

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

Preview Lab → · Contrast checker → · Palette generator →

#51181D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva