#51181E#51181E

#51181E is a dark, moderate red. Relative luminance 0.025; OKLCH L 30.3% C 0.085 H 17.7°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#51181E
RGBrgb(81, 24, 30)
HSLhsl(354, 54%, 21%)
HSVhsv(354, 70%, 32%)
CMYKcmyk(0%, 70.4%, 63%, 68.2%)
CIE-LABlab(17.90, 27.12, 10.49)
CIE-LCHlch(17.90, 29.08, 21.15°)
OKLaboklab(30.28% 0.0811 0.0259)
OKLCHoklch(30.28% 0.085 17.7)
XYZxyz(3.9547, 2.4969, 1.5017)
Luminance0.0250 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51181E #18514B
analogous
#51183A #51181E #512E18
triadic
#51181E #1E5118 #181E51
tetradic
#51181E #3A5118 #18514B #2E1851
square
#51181E #3A5118 #18514B #2E1851
split-complementary
#51181E #18512E #183A51
monochromatic
#180709 #220A0D #51181E #80262F #AF3441

Accessibility & contrast

On white

14.01
#51181E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#51181E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51181E
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51181E#FFFFFF#000000##FFFFFF
##51181E1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26241E
Deuteranopia (green-blind)
#35301D
Tritanopia (blue-blind)
#590D1B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #51181e;
/* rgb */ color: rgb(81, 24, 30);
/* oklch */ color: oklch(30.3% 0.085 17.7);
Tailwind
colors: {
  custom: {
    50: '#865859',
    500: '#51181e',
    950: '#000000',
  },
}
SCSS
$custom: #51181e;
$custom-light: #865859;
$custom-dark: #000000;
JSON
{
  "hex": "#51181e",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 30
  },
  "hsl": {
    "h": 353.684,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.3028,
    "c": 0.08512,
    "h": 17.7
  },
  "luminance": 0.02496
}

Semantic roles & 50–950 ramp

primary
#51181E
secondary
#3D8880
accent
#DECE4A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51181E

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

Preview Lab → · Contrast checker → · Palette generator →

#51181E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva