#540E1A#540E1A

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

Color values

HEX#540E1A
RGBrgb(84, 14, 26)
HSLhsl(350, 71%, 19%)
HSVhsv(350, 83%, 33%)
CMYKcmyk(0%, 83.3%, 69%, 67.1%)
CIE-LABlab(16.86, 32.26, 12.09)
CIE-LCHlch(16.86, 34.45, 20.54°)
OKLaboklab(29.59% 0.0963 0.0291)
OKLCHoklch(29.59% 0.101 16.8)
XYZxyz(4.0001, 2.2741, 1.2054)
Luminance0.0227 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E1A #0E5448
analogous
#540E3D #540E1A #54250E
triadic
#540E1A #1A540E #0E1A54
tetradic
#540E1A #3D540E #0E5448 #250E54
square
#540E1A #3D540E #0E5448 #250E54
split-complementary
#540E1A #0E5425 #0E3D54
monochromatic
#1A0408 #20050A #540E1A #88172A #BD1F3A

Accessibility & contrast

On white

14.44
#540E1A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#540E1A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540E1A
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E1A#FFFFFF#000000##FFFFFF
##540E1A1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22201A
Deuteranopia (green-blind)
#342F18
Tritanopia (blue-blind)
#5D0013
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540e1a;
/* rgb */ color: rgb(84, 14, 26);
/* oklch */ color: oklch(29.6% 0.101 16.8);
Tailwind
colors: {
  custom: {
    50: '#8a5456',
    500: '#540e1a',
    950: '#000000',
  },
}
SCSS
$custom: #540e1a;
$custom-light: #8a5456;
$custom-dark: #000000;
JSON
{
  "hex": "#540e1a",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 26
  },
  "hsl": {
    "h": 349.714,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29593,
    "c": 0.10057,
    "h": 16.8
  },
  "luminance": 0.02273
}

Semantic roles & 50–950 ramp

primary
#540E1A
secondary
#2F8E7E
accent
#EECF3A
background
#F8F5F5
surface
#F0E9E8
border
#CBC5C4
text
#0D0303
muted
#7D7878

Preview Lab

Preview with #540E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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