#511B1F#511B1F

#511B1F is a dark, moderate red. Relative luminance 0.026; OKLCH L 30.7% C 0.081 H 18.8°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#511B1F
RGBrgb(81, 27, 31)
HSLhsl(356, 50%, 21%)
HSVhsv(356, 67%, 32%)
CMYKcmyk(0%, 66.7%, 61.7%, 68.2%)
CIE-LABlab(18.51, 25.65, 10.59)
CIE-LCHlch(18.51, 27.75, 22.44°)
OKLaboklab(30.74% 0.0766 0.0262)
OKLCHoklch(30.74% 0.081 18.8)
XYZxyz(4.0329, 2.6326, 1.5918)
Luminance0.0263 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B1F #1B514D
analogous
#511B3A #511B1F #51321B
triadic
#511B1F #1F511B #1B1F51
tetradic
#511B1F #3A511B #1B514D #321B51
square
#511B1F #3A511B #1B514D #321B51
split-complementary
#511B1F #1B5132 #1B3A51
monochromatic
#170809 #230C0D #511B1F #7F2A31 #AD3A42

Accessibility & contrast

On white

13.76
#511B1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#511B1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B1F
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B1F#FFFFFF#000000##FFFFFF
##511B1F1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28261F
Deuteranopia (green-blind)
#36311E
Tritanopia (blue-blind)
#59111D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #511b1f;
/* rgb */ color: rgb(81, 27, 31);
/* oklch */ color: oklch(30.7% 0.081 18.8);
Tailwind
colors: {
  custom: {
    50: '#865a5a',
    500: '#511b1f',
    950: '#000000',
  },
}
SCSS
$custom: #511b1f;
$custom-light: #865a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#511b1f",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 31
  },
  "hsl": {
    "h": 355.556,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.3074,
    "c": 0.08098,
    "h": 18.8
  },
  "luminance": 0.02632
}

Semantic roles & 50–950 ramp

primary
#511B1F
secondary
#418782
accent
#DACF4E
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0403
muted
#7D7978

Preview Lab

Preview with #511B1F

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

Preview Lab → · Contrast checker → · Palette generator →

#511B1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva