#540F1A#540F1A

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

Color values

HEX#540F1A
RGBrgb(84, 15, 26)
HSLhsl(350, 70%, 19%)
HSVhsv(350, 82%, 33%)
CMYKcmyk(0%, 82.1%, 69%, 67.1%)
CIE-LABlab(17.00, 31.89, 12.26)
CIE-LCHlch(17.00, 34.17, 21.03°)
OKLaboklab(29.69% 0.0951 0.0295)
OKLCHoklch(29.69% 0.1 17.2)
XYZxyz(4.0139, 2.3016, 1.2100)
Luminance0.0230 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F1A #0F5449
analogous
#540F3D #540F1A #54270F
triadic
#540F1A #1A540F #0F1A54
tetradic
#540F1A #3D540F #0F5449 #270F54
square
#540F1A #3D540F #0F5449 #270F54
split-complementary
#540F1A #0F5427 #0F3D54
monochromatic
#1A0508 #20060A #540F1A #88182A #BC223A

Accessibility & contrast

On white

14.38
#540F1A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F1A
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F1A#FFFFFF#000000##FFFFFF
##540F1A1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #540f1a;
/* rgb */ color: rgb(84, 15, 26);
/* oklch */ color: oklch(29.7% 0.100 17.2);
Tailwind
colors: {
  custom: {
    50: '#8a5456',
    500: '#540f1a',
    950: '#000000',
  },
}
SCSS
$custom: #540f1a;
$custom-light: #8a5456;
$custom-dark: #000000;
JSON
{
  "hex": "#540f1a",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 26
  },
  "hsl": {
    "h": 350.435,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29691,
    "c": 0.09955,
    "h": 17.2
  },
  "luminance": 0.02301
}

Semantic roles & 50–950 ramp

primary
#540F1A
secondary
#318E7F
accent
#EDD03B
background
#F8F5F5
surface
#F0E9E8
border
#CBC5C4
text
#0D0303
muted
#7D7878

Preview Lab

Preview with #540F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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