#540D1E#540D1E

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

Color values

HEX#540D1E
RGBrgb(84, 13, 30)
HSLhsl(346, 73%, 19%)
HSVhsv(346, 85%, 33%)
CMYKcmyk(0%, 84.5%, 64.3%, 67.1%)
CIE-LABlab(16.83, 32.91, 9.16)
CIE-LCHlch(16.83, 34.16, 15.56°)
OKLaboklab(29.6% 0.0992 0.0227)
OKLCHoklch(29.6% 0.102 12.9)
XYZxyz(4.0348, 2.2670, 1.4532)
Luminance0.0227 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D1E #0D5443
analogous
#540D42 #540D1E #54200D
triadic
#540D1E #1E540D #0D1E54
tetradic
#540D1E #42540D #0D5443 #200D54
square
#540D1E #42540D #0D5443 #200D54
split-complementary
#540D1E #0D5420 #0D4254
monochromatic
#1A0409 #1F050B #540D1E #891531 #BE1D44

Accessibility & contrast

On white

14.45
#540D1E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540D1E
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D1E#FFFFFF#000000##FFFFFF
##540D1E1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21201E
Deuteranopia (green-blind)
#332F1C
Tritanopia (blue-blind)
#5D0014
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540d1e;
/* rgb */ color: rgb(84, 13, 30);
/* oklch */ color: oklch(29.6% 0.102 12.9);
Tailwind
colors: {
  custom: {
    50: '#895459',
    500: '#540d1e',
    950: '#000000',
  },
}
SCSS
$custom: #540d1e;
$custom-light: #895459;
$custom-dark: #000000;
JSON
{
  "hex": "#540d1e",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 30
  },
  "hsl": {
    "h": 345.634,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29598,
    "c": 0.10178,
    "h": 12.9
  },
  "luminance": 0.02266
}

Semantic roles & 50–950 ramp

primary
#540D1E
secondary
#2E8F78
accent
#F0C438
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #540D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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