#540D1D#540D1D

#540D1D is a dark, moderate red. Relative luminance 0.023; OKLCH L 29.6% C 0.102 H 13.8°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#540D1D
RGBrgb(84, 13, 29)
HSLhsl(346, 73%, 19%)
HSVhsv(346, 85%, 33%)
CMYKcmyk(0%, 84.5%, 65.5%, 67.1%)
CIE-LABlab(16.81, 32.83, 9.85)
CIE-LCHlch(16.81, 34.28, 16.70°)
OKLaboklab(29.57% 0.0988 0.0242)
OKLCHoklch(29.57% 0.102 13.8)
XYZxyz(4.0223, 2.2620, 1.3870)
Luminance0.0226 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D1D #0D5444
analogous
#540D41 #540D1D #54210D
triadic
#540D1D #1D540D #0D1D54
tetradic
#540D1D #41540D #0D5444 #210D54
square
#540D1D #41540D #0D5444 #210D54
split-complementary
#540D1D #0D5421 #0D4154
monochromatic
#1A0409 #1F050B #540D1D #89152F #BE1D42

Accessibility & contrast

On white

14.46
#540D1D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#540D1D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D1D
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D1D#FFFFFF#000000##FFFFFF
##540D1D1.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21201D
Deuteranopia (green-blind)
#332F1B
Tritanopia (blue-blind)
#5D0014
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #540d1d;
/* rgb */ color: rgb(84, 13, 29);
/* oklch */ color: oklch(29.6% 0.102 13.8);
Tailwind
colors: {
  custom: {
    50: '#895458',
    500: '#540d1d',
    950: '#000000',
  },
}
SCSS
$custom: #540d1d;
$custom-light: #895458;
$custom-dark: #000000;
JSON
{
  "hex": "#540d1d",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 29
  },
  "hsl": {
    "h": 346.479,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29572,
    "c": 0.10169,
    "h": 13.8
  },
  "luminance": 0.02261
}

Semantic roles & 50–950 ramp

primary
#540D1D
secondary
#2E8F79
accent
#F0C638
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #540D1D

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

Preview Lab → · Contrast checker → · Palette generator →

#540D1D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva