#511D1F#511D1F

#511D1F is a dark, moderate red. Relative luminance 0.027; OKLCH L 31.0% C 0.078 H 20.5°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#511D1F
RGBrgb(81, 29, 31)
HSLhsl(358, 47%, 22%)
HSVhsv(358, 64%, 32%)
CMYKcmyk(0%, 64.2%, 61.7%, 68.2%)
CIE-LABlab(18.92, 24.57, 11.14)
CIE-LCHlch(18.92, 26.97, 24.39°)
OKLaboklab(31.05% 0.0732 0.0274)
OKLCHoklch(31.05% 0.078 20.5)
XYZxyz(4.0804, 2.7275, 1.6076)
Luminance0.0273 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D1F #1D514F
analogous
#511D39 #511D1F #51351D
triadic
#511D1F #1F511D #1D1F51
tetradic
#511D1F #39511D #1D514F #351D51
square
#511D1F #39511D #1D514F #351D51
split-complementary
#511D1F #1D5135 #1D3951
monochromatic
#170809 #240D0E #511D1F #7E2D30 #AB3D41

Accessibility & contrast

On white

13.59
#511D1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#511D1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D1F
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D1F#FFFFFF#000000##FFFFFF
##511D1F1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29271F
Deuteranopia (green-blind)
#37321E
Tritanopia (blue-blind)
#59141E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #511d1f;
/* rgb */ color: rgb(81, 29, 31);
/* oklch */ color: oklch(31.0% 0.078 20.5);
Tailwind
colors: {
  custom: {
    50: '#865b5a',
    500: '#511d1f',
    950: '#000000',
  },
}
SCSS
$custom: #511d1f;
$custom-light: #865b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#511d1f",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 31
  },
  "hsl": {
    "h": 357.692,
    "s": 47.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31048,
    "c": 0.07819,
    "h": 20.5
  },
  "luminance": 0.02727
}

Semantic roles & 50–950 ramp

primary
#511D1F
secondary
#448684
accent
#D7D251
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0403
muted
#7D7978

Preview Lab

Preview with #511D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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