#540F1F#540F1F

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

Color values

HEX#540F1F
RGBrgb(84, 15, 31)
HSLhsl(346, 70%, 19%)
HSVhsv(346, 82%, 33%)
CMYKcmyk(0%, 82.1%, 63.1%, 67.1%)
CIE-LABlab(17.11, 32.27, 8.82)
CIE-LCHlch(17.11, 33.45, 15.29°)
OKLaboklab(29.82% 0.0974 0.0219)
OKLCHoklch(29.82% 0.1 12.7)
XYZxyz(4.0747, 2.3260, 1.5305)
Luminance0.0232 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F1F #0F5444
analogous
#540F42 #540F1F #54220F
triadic
#540F1F #1F540F #0F1F54
tetradic
#540F1F #42540F #0F5444 #220F54
square
#540F1F #42540F #0F5444 #220F54
split-complementary
#540F1F #0F5422 #0F4254
monochromatic
#1A050A #20060C #540F1F #881832 #BC2245

Accessibility & contrast

On white

14.33
#540F1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#540F1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F1F
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F1F#FFFFFF#000000##FFFFFF
##540F1F1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #540f1f;
/* rgb */ color: rgb(84, 15, 31);
/* oklch */ color: oklch(29.8% 0.100 12.7);
Tailwind
colors: {
  custom: {
    50: '#89555a',
    500: '#540f1f',
    950: '#000000',
  },
}
SCSS
$custom: #540f1f;
$custom-light: #89555a;
$custom-dark: #000000;
JSON
{
  "hex": "#540f1f",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 31
  },
  "hsl": {
    "h": 346.087,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29815,
    "c": 0.09979,
    "h": 12.7
  },
  "luminance": 0.02325
}

Semantic roles & 50–950 ramp

primary
#540F1F
secondary
#318E78
accent
#EDC33B
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #540F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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