#511F1F#511F1F

#511F1F is a dark, moderate red. Relative luminance 0.028; OKLCH L 31.4% C 0.075 H 22.4°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#511F1F
RGBrgb(81, 31, 31)
HSLhsl(0, 45%, 22%)
HSVhsv(0, 62%, 32%)
CMYKcmyk(0%, 61.7%, 61.7%, 68.2%)
CIE-LABlab(19.34, 23.45, 11.70)
CIE-LCHlch(19.34, 26.21, 26.52°)
OKLaboklab(31.37% 0.0697 0.0287)
OKLCHoklch(31.37% 0.075 22.4)
XYZxyz(4.1310, 2.8287, 1.6245)
Luminance0.0283 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F1F #1F5151
analogous
#511F38 #511F1F #51381F
triadic
#511F1F #1F511F #1F1F51
tetradic
#511F1F #38511F #1F5151 #381F51
square
#511F1F #38511F #1F5151 #381F51
split-complementary
#511F1F #1F5138 #1F3851
monochromatic
#160808 #250E0E #511F1F #7D3030 #AA4141

Accessibility & contrast

On white

13.41
#511F1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#511F1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F1F
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F1F#FFFFFF#000000##FFFFFF
##511F1F1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B281F
Deuteranopia (green-blind)
#38331E
Tritanopia (blue-blind)
#59171F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511f1f;
/* rgb */ color: rgb(81, 31, 31);
/* oklch */ color: oklch(31.4% 0.075 22.4);
Tailwind
colors: {
  custom: {
    50: '#865d5a',
    500: '#511f1f',
    950: '#000000',
  },
}
SCSS
$custom: #511f1f;
$custom-light: #865d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#511f1f",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 31
  },
  "hsl": {
    "h": 0,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3137,
    "c": 0.07539,
    "h": 22.4
  },
  "luminance": 0.02828
}

Semantic roles & 50–950 ramp

primary
#511F1F
secondary
#468686
accent
#D4D453
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0403
muted
#7D7978

Preview Lab

Preview with #511F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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