#540F1C#540F1C

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

Color values

HEX#540F1C
RGBrgb(84, 15, 28)
HSLhsl(349, 70%, 19%)
HSVhsv(349, 82%, 33%)
CMYKcmyk(0%, 82.1%, 66.7%, 67.1%)
CIE-LABlab(17.04, 32.03, 10.88)
CIE-LCHlch(17.04, 33.83, 18.77°)
OKLaboklab(29.74% 0.096 0.0265)
OKLCHoklch(29.74% 0.1 15.4)
XYZxyz(4.0370, 2.3109, 1.3319)
Luminance0.0231 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F1C #0F5447
analogous
#540F3F #540F1C #54250F
triadic
#540F1C #1C540F #0F1C54
tetradic
#540F1C #3F540F #0F5447 #250F54
square
#540F1C #3F540F #0F5447 #250F54
split-complementary
#540F1C #0F5425 #0F3F54
monochromatic
#1A0509 #20060B #540F1C #88182D #BC223F

Accessibility & contrast

On white

14.36
#540F1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F1C
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F1C#FFFFFF#000000##FFFFFF
##540F1C1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22211C
Deuteranopia (green-blind)
#342F1A
Tritanopia (blue-blind)
#5D0015
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540f1c;
/* rgb */ color: rgb(84, 15, 28);
/* oklch */ color: oklch(29.7% 0.100 15.4);
Tailwind
colors: {
  custom: {
    50: '#895457',
    500: '#540f1c',
    950: '#000000',
  },
}
SCSS
$custom: #540f1c;
$custom-light: #895457;
$custom-dark: #000000;
JSON
{
  "hex": "#540f1c",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 28
  },
  "hsl": {
    "h": 348.696,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29738,
    "c": 0.09959,
    "h": 15.4
  },
  "luminance": 0.0231
}

Semantic roles & 50–950 ramp

primary
#540F1C
secondary
#318E7C
accent
#EDCB3B
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #540F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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