#540E1C#540E1C

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

Color values

HEX#540E1C
RGBrgb(84, 14, 28)
HSLhsl(348, 71%, 19%)
HSVhsv(348, 83%, 33%)
CMYKcmyk(0%, 83.3%, 66.7%, 67.1%)
CIE-LABlab(16.91, 32.41, 10.71)
CIE-LCHlch(16.91, 34.13, 18.29°)
OKLaboklab(29.64% 0.0972 0.0261)
OKLCHoklch(29.64% 0.101 15)
XYZxyz(4.0232, 2.2833, 1.3273)
Luminance0.0228 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E1C #0E5446
analogous
#540E3F #540E1C #54230E
triadic
#540E1C #1C540E #0E1C54
tetradic
#540E1C #3F540E #0E5446 #230E54
square
#540E1C #3F540E #0E5446 #230E54
split-complementary
#540E1C #0E5423 #0E3F54
monochromatic
#1A0409 #20050B #540E1C #88172D #BD1F3F

Accessibility & contrast

On white

14.42
#540E1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540E1C
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E1C#FFFFFF#000000##FFFFFF
##540E1C1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22201C
Deuteranopia (green-blind)
#332F1A
Tritanopia (blue-blind)
#5D0014
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540e1c;
/* rgb */ color: rgb(84, 14, 28);
/* oklch */ color: oklch(29.6% 0.101 15.0);
Tailwind
colors: {
  custom: {
    50: '#895457',
    500: '#540e1c',
    950: '#000000',
  },
}
SCSS
$custom: #540e1c;
$custom-light: #895457;
$custom-dark: #000000;
JSON
{
  "hex": "#540e1c",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 28
  },
  "hsl": {
    "h": 348,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29641,
    "c": 0.10063,
    "h": 15
  },
  "luminance": 0.02283
}

Semantic roles & 50–950 ramp

primary
#540E1C
secondary
#2F8E7B
accent
#EECA3A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #540E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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