#540E1F#540E1F

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

Color values

HEX#540E1F
RGBrgb(84, 14, 31)
HSLhsl(345, 71%, 19%)
HSVhsv(345, 83%, 33%)
CMYKcmyk(0%, 83.3%, 63.1%, 67.1%)
CIE-LABlab(16.98, 32.64, 8.65)
CIE-LCHlch(16.98, 33.76, 14.84°)
OKLaboklab(29.72% 0.0985 0.0215)
OKLCHoklch(29.72% 0.101 12.3)
XYZxyz(4.0609, 2.2984, 1.5259)
Luminance0.0230 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E1F #0E5443
analogous
#540E42 #540E1F #54200E
triadic
#540E1F #1F540E #0E1F54
tetradic
#540E1F #42540E #0E5443 #200E54
square
#540E1F #42540E #0E5443 #200E54
split-complementary
#540E1F #0E5420 #0E4254
monochromatic
#1A040A #20050C #540E1F #881732 #BD1F46

Accessibility & contrast

On white

14.39
#540E1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540E1F
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E1F#FFFFFF#000000##FFFFFF
##540E1F1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21211F
Deuteranopia (green-blind)
#332F1D
Tritanopia (blue-blind)
#5D0015
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540e1f;
/* rgb */ color: rgb(84, 14, 31);
/* oklch */ color: oklch(29.7% 0.101 12.3);
Tailwind
colors: {
  custom: {
    50: '#89545a',
    500: '#540e1f',
    950: '#000000',
  },
}
SCSS
$custom: #540e1f;
$custom-light: #89545a;
$custom-dark: #000000;
JSON
{
  "hex": "#540e1f",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 31
  },
  "hsl": {
    "h": 345.429,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29718,
    "c": 0.10086,
    "h": 12.3
  },
  "luminance": 0.02298
}

Semantic roles & 50–950 ramp

primary
#540E1F
secondary
#2F8E77
accent
#EEC23A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #540E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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