#540D0D#540D0D

#540D0D is a dark, moderate red. Relative luminance 0.022; OKLCH L 29.3% C 0.103 H 26.3°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#540D0D
RGBrgb(84, 13, 13)
HSLhsl(0, 73%, 19%)
HSVhsv(0, 85%, 33%)
CMYKcmyk(0%, 84.5%, 84.5%, 67.1%)
CIE-LABlab(16.52, 31.91, 19.87)
CIE-LCHlch(16.52, 37.59, 31.91°)
OKLaboklab(29.26% 0.0919 0.0455)
OKLCHoklch(29.26% 0.103 26.3)
XYZxyz(3.8732, 2.2023, 0.6018)
Luminance0.0220 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D0D #0D5454
analogous
#540D31 #540D0D #54310D
triadic
#540D0D #0D540D #0D0D54
tetradic
#540D0D #31540D #0D5454 #310D54
square
#540D0D #31540D #0D5454 #310D54
split-complementary
#540D0D #0D5431 #0D3154
monochromatic
#1A0404 #1F0505 #540D0D #891515 #BE1D1D

Accessibility & contrast

On white

14.58
#540D0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#540D0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D0D
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D0D#FFFFFF#000000##FFFFFF
##540D0D1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#231F0C
Deuteranopia (green-blind)
#352E0A
Tritanopia (blue-blind)
#5D000E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #540d0d;
/* rgb */ color: rgb(84, 13, 13);
/* oklch */ color: oklch(29.3% 0.103 26.3);
Tailwind
colors: {
  custom: {
    50: '#8b534c',
    500: '#540d0d',
    950: '#000000',
  },
}
SCSS
$custom: #540d0d;
$custom-light: #8b534c;
$custom-dark: #000000;
JSON
{
  "hex": "#540d0d",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 13
  },
  "hsl": {
    "h": 0,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29263,
    "c": 0.10252,
    "h": 26.3
  },
  "luminance": 0.02202
}

Semantic roles & 50–950 ramp

primary
#540D0D
secondary
#2E8F8F
accent
#F0F038
background
#F9F5F4
surface
#F1E8E7
border
#CBC4C3
text
#0D0301
muted
#7E7877

Preview Lab

Preview with #540D0D

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

Preview Lab → · Contrast checker → · Palette generator →

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