#511F1B#511F1B

#511F1B is a dark, moderate red. Relative luminance 0.028; OKLCH L 31.3% C 0.076 H 26.9°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#511F1B
RGBrgb(81, 31, 27)
HSLhsl(4, 50%, 21%)
HSVhsv(4, 67%, 32%)
CMYKcmyk(0%, 61.7%, 66.7%, 68.2%)
CIE-LABlab(19.26, 23.10, 14.35)
CIE-LCHlch(19.26, 27.19, 31.84°)
OKLaboklab(31.28% 0.0678 0.0345)
OKLCHoklch(31.28% 0.076 26.9)
XYZxyz(4.0815, 2.8089, 1.3639)
Luminance0.0281 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F1B #1B4D51
analogous
#511B32 #511F1B #513A1B
triadic
#511F1B #1B511F #1F1B51
tetradic
#511F1B #32511B #1B4D51 #3A1B51
square
#511F1B #32511B #1B4D51 #3A1B51
split-complementary
#511F1B #1B513A #1B3251
monochromatic
#170908 #230D0C #511F1B #7F312A #AD423A

Accessibility & contrast

On white

13.45
#511F1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#511F1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F1B
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F1B#FFFFFF#000000##FFFFFF
##511F1B1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C281A
Deuteranopia (green-blind)
#38331A
Tritanopia (blue-blind)
#59161E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511f1b;
/* rgb */ color: rgb(81, 31, 27);
/* oklch */ color: oklch(31.3% 0.076 26.9);
Tailwind
colors: {
  custom: {
    50: '#865c57',
    500: '#511f1b',
    950: '#000000',
  },
}
SCSS
$custom: #511f1b;
$custom-light: #865c57;
$custom-dark: #000000;
JSON
{
  "hex": "#511f1b",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 27
  },
  "hsl": {
    "h": 4.444,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31281,
    "c": 0.0761,
    "h": 26.9
  },
  "luminance": 0.02808
}

Semantic roles & 50–950 ramp

primary
#511F1B
secondary
#418287
accent
#CFDA4E
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0403
muted
#7D7978

Preview Lab

Preview with #511F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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