#540F1D#540F1D

#540F1D is a dark, moderate red. Relative luminance 0.023; OKLCH L 29.8% C 0.100 H 14.5°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#540F1D
RGBrgb(84, 15, 29)
HSLhsl(348, 70%, 19%)
HSVhsv(348, 82%, 33%)
CMYKcmyk(0%, 82.1%, 65.5%, 67.1%)
CIE-LABlab(17.06, 32.11, 10.20)
CIE-LCHlch(17.06, 33.69, 17.62°)
OKLaboklab(29.76% 0.0964 0.025)
OKLCHoklch(29.76% 0.1 14.5)
XYZxyz(4.0492, 2.3158, 1.3959)
Luminance0.0232 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F1D #0F5446
analogous
#540F40 #540F1D #54240F
triadic
#540F1D #1D540F #0F1D54
tetradic
#540F1D #40540F #0F5446 #240F54
square
#540F1D #40540F #0F5446 #240F54
split-complementary
#540F1D #0F5424 #0F4054
monochromatic
#1A0509 #20060B #540F1D #88182F #BC2241

Accessibility & contrast

On white

14.35
#540F1D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#540F1D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F1D
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F1D#FFFFFF#000000##FFFFFF
##540F1D1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22211D
Deuteranopia (green-blind)
#342F1B
Tritanopia (blue-blind)
#5D0015
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540f1d;
/* rgb */ color: rgb(84, 15, 29);
/* oklch */ color: oklch(29.8% 0.100 14.5);
Tailwind
colors: {
  custom: {
    50: '#895458',
    500: '#540f1d',
    950: '#000000',
  },
}
SCSS
$custom: #540f1d;
$custom-light: #895458;
$custom-dark: #000000;
JSON
{
  "hex": "#540f1d",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 29
  },
  "hsl": {
    "h": 347.826,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29763,
    "c": 0.09963,
    "h": 14.5
  },
  "luminance": 0.02315
}

Semantic roles & 50–950 ramp

primary
#540F1D
secondary
#318E7B
accent
#EDC93B
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #540F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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