#540D1A#540D1A

#540D1A is a dark, moderate red. Relative luminance 0.022; OKLCH L 29.5% C 0.102 H 16.4°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#540D1A
RGBrgb(84, 13, 26)
HSLhsl(349, 73%, 19%)
HSVhsv(349, 85%, 33%)
CMYKcmyk(0%, 84.5%, 69%, 67.1%)
CIE-LABlab(16.74, 32.62, 11.92)
CIE-LCHlch(16.74, 34.73, 20.08°)
OKLaboklab(29.5% 0.0974 0.0287)
OKLCHoklch(29.5% 0.102 16.4)
XYZxyz(3.9870, 2.2478, 1.2010)
Luminance0.0225 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D1A #0D5447
analogous
#540D3E #540D1A #54240D
triadic
#540D1A #1A540D #0D1A54
tetradic
#540D1A #3E540D #0D5447 #240D54
square
#540D1A #3E540D #0D5447 #240D54
split-complementary
#540D1A #0D5424 #0D3E54
monochromatic
#1A0408 #1F050A #540D1A #89152A #BE1D3B

Accessibility & contrast

On white

14.49
#540D1A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540D1A
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D1A#FFFFFF#000000##FFFFFF
##540D1A1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22201A
Deuteranopia (green-blind)
#332F18
Tritanopia (blue-blind)
#5D0013
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #540d1a;
/* rgb */ color: rgb(84, 13, 26);
/* oklch */ color: oklch(29.5% 0.102 16.4);
Tailwind
colors: {
  custom: {
    50: '#8a5456',
    500: '#540d1a',
    950: '#000000',
  },
}
SCSS
$custom: #540d1a;
$custom-light: #8a5456;
$custom-dark: #000000;
JSON
{
  "hex": "#540d1a",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 26
  },
  "hsl": {
    "h": 349.014,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29499,
    "c": 0.10156,
    "h": 16.4
  },
  "luminance": 0.02247
}

Semantic roles & 50–950 ramp

primary
#540D1A
secondary
#2E8F7D
accent
#F0CE38
background
#F8F5F5
surface
#F0E9E8
border
#CBC5C4
text
#0D0303
muted
#7D7878

Preview Lab

Preview with #540D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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