#540D0F#540D0F

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

Color values

HEX#540D0F
RGBrgb(84, 13, 15)
HSLhsl(358, 73%, 19%)
HSVhsv(358, 85%, 33%)
CMYKcmyk(0%, 84.5%, 82.1%, 67.1%)
CIE-LABlab(16.54, 31.99, 18.89)
CIE-LCHlch(16.54, 37.15, 30.56°)
OKLaboklab(29.29% 0.0927 0.0432)
OKLCHoklch(29.29% 0.102 25)
XYZxyz(3.8868, 2.2078, 0.6733)
Luminance0.0221 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D0F #0D5452
analogous
#540D33 #540D0F #542F0D
triadic
#540D0F #0F540D #0D0F54
tetradic
#540D0F #33540D #0D5452 #2F0D54
square
#540D0F #33540D #0D5452 #2F0D54
split-complementary
#540D0F #0D542F #0D3354
monochromatic
#1A0405 #1F0506 #540D0F #891518 #BE1D22

Accessibility & contrast

On white

14.57
#540D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540D0F
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D0F#FFFFFF#000000##FFFFFF
##540D0F1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#231F0E
Deuteranopia (green-blind)
#342E0C
Tritanopia (blue-blind)
#5D000F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #540d0f;
/* rgb */ color: rgb(84, 13, 15);
/* oklch */ color: oklch(29.3% 0.102 25.0);
Tailwind
colors: {
  custom: {
    50: '#8b534d',
    500: '#540d0f',
    950: '#000000',
  },
}
SCSS
$custom: #540d0f;
$custom-light: #8b534d;
$custom-dark: #000000;
JSON
{
  "hex": "#540d0f",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 15
  },
  "hsl": {
    "h": 358.31,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29291,
    "c": 0.10227,
    "h": 25
  },
  "luminance": 0.02207
}

Semantic roles & 50–950 ramp

primary
#540D0F
secondary
#2E8F8C
accent
#F0EB38
background
#F9F5F4
surface
#F1E8E7
border
#CBC4C3
text
#0D0301
muted
#7E7877

Preview Lab

Preview with #540D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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