#540F1B#540F1B

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

Color values

HEX#540F1B
RGBrgb(84, 15, 27)
HSLhsl(350, 70%, 19%)
HSVhsv(350, 82%, 33%)
CMYKcmyk(0%, 82.1%, 67.9%, 67.1%)
CIE-LABlab(17.02, 31.96, 11.57)
CIE-LCHlch(17.02, 33.99, 19.90°)
OKLaboklab(29.72% 0.0955 0.028)
OKLCHoklch(29.72% 0.1 16.4)
XYZxyz(4.0252, 2.3062, 1.2699)
Luminance0.0231 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F1B #0F5448
analogous
#540F3E #540F1B #54260F
triadic
#540F1B #1B540F #0F1B54
tetradic
#540F1B #3E540F #0F5448 #260F54
square
#540F1B #3E540F #0F5448 #260F54
split-complementary
#540F1B #0F5426 #0F3E54
monochromatic
#1A0508 #20060A #540F1B #88182C #BC223C

Accessibility & contrast

On white

14.37
#540F1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F1B
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F1B#FFFFFF#000000##FFFFFF
##540F1B1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22211B
Deuteranopia (green-blind)
#342F19
Tritanopia (blue-blind)
#5D0014
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540f1b;
/* rgb */ color: rgb(84, 15, 27);
/* oklch */ color: oklch(29.7% 0.100 16.4);
Tailwind
colors: {
  custom: {
    50: '#895457',
    500: '#540f1b',
    950: '#000000',
  },
}
SCSS
$custom: #540f1b;
$custom-light: #895457;
$custom-dark: #000000;
JSON
{
  "hex": "#540f1b",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 27
  },
  "hsl": {
    "h": 349.565,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29715,
    "c": 0.09956,
    "h": 16.4
  },
  "luminance": 0.02306
}

Semantic roles & 50–950 ramp

primary
#540F1B
secondary
#318E7E
accent
#EDCE3B
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0D0303
muted
#7D7878

Preview Lab

Preview with #540F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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