#511A1F#511A1F

#511A1F is a dark, moderate red. Relative luminance 0.026; OKLCH L 30.6% C 0.082 H 18.1°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#511A1F
RGBrgb(81, 26, 31)
HSLhsl(355, 51%, 21%)
HSVhsv(355, 68%, 32%)
CMYKcmyk(0%, 67.9%, 61.7%, 68.2%)
CIE-LABlab(18.31, 26.18, 10.33)
CIE-LCHlch(18.31, 28.14, 21.53°)
OKLaboklab(30.59% 0.0783 0.0255)
OKLCHoklch(30.59% 0.082 18.1)
XYZxyz(4.0104, 2.5876, 1.5843)
Luminance0.0259 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A1F #1A514C
analogous
#511A3A #511A1F #51301A
triadic
#511A1F #1F511A #1A1F51
tetradic
#511A1F #3A511A #1A514C #301A51
square
#511A1F #3A511A #1A514C #301A51
split-complementary
#511A1F #1A5130 #1A3A51
monochromatic
#170709 #230B0D #511A1F #7F2931 #AE3842

Accessibility & contrast

On white

13.84
#511A1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#511A1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A1F
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A1F#FFFFFF#000000##FFFFFF
##511A1F1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27251F
Deuteranopia (green-blind)
#35311E
Tritanopia (blue-blind)
#59101C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #511a1f;
/* rgb */ color: rgb(81, 26, 31);
/* oklch */ color: oklch(30.6% 0.082 18.1);
Tailwind
colors: {
  custom: {
    50: '#865a5a',
    500: '#511a1f',
    950: '#000000',
  },
}
SCSS
$custom: #511a1f;
$custom-light: #865a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#511a1f",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 31
  },
  "hsl": {
    "h": 354.545,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30591,
    "c": 0.08237,
    "h": 18.1
  },
  "luminance": 0.02587
}

Semantic roles & 50–950 ramp

primary
#511A1F
secondary
#408781
accent
#DBCE4D
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0403
muted
#7D7978

Preview Lab

Preview with #511A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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