#540D19#540D19

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

Color values

HEX#540D19
RGBrgb(84, 13, 25)
HSLhsl(350, 73%, 19%)
HSVhsv(350, 85%, 33%)
CMYKcmyk(0%, 84.5%, 70.2%, 67.1%)
CIE-LABlab(16.72, 32.55, 12.61)
CIE-LCHlch(16.72, 34.91, 21.18°)
OKLaboklab(29.48% 0.097 0.0302)
OKLCHoklch(29.48% 0.102 17.3)
XYZxyz(3.9760, 2.2435, 1.1432)
Luminance0.0224 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D19 #0D5448
analogous
#540D3D #540D19 #54250D
triadic
#540D19 #19540D #0D1954
tetradic
#540D19 #3D540D #0D5448 #250D54
square
#540D19 #3D540D #0D5448 #250D54
split-complementary
#540D19 #0D5425 #0D3D54
monochromatic
#1A0408 #1F0509 #540D19 #891529 #BE1D39

Accessibility & contrast

On white

14.50
#540D19 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540D19
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D19#FFFFFF#000000##FFFFFF
##540D191.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222019
Deuteranopia (green-blind)
#342F17
Tritanopia (blue-blind)
#5D0012
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #540d19;
/* rgb */ color: rgb(84, 13, 25);
/* oklch */ color: oklch(29.5% 0.102 17.3);
Tailwind
colors: {
  custom: {
    50: '#8a5455',
    500: '#540d19',
    950: '#000000',
  },
}
SCSS
$custom: #540d19;
$custom-light: #8a5455;
$custom-dark: #000000;
JSON
{
  "hex": "#540d19",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 25
  },
  "hsl": {
    "h": 349.859,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29477,
    "c": 0.10155,
    "h": 17.3
  },
  "luminance": 0.02243
}

Semantic roles & 50–950 ramp

primary
#540D19
secondary
#2E8F7E
accent
#F0D138
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0D0303
muted
#7D7878

Preview Lab

Preview with #540D19

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

Preview Lab → · Contrast checker → · Palette generator →

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