#51222B#51222B

#51222B is a dark, moderate red. Relative luminance 0.031; OKLCH L 32.2% C 0.071 H 9.9°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#51222B
RGBrgb(81, 34, 43)
HSLhsl(349, 41%, 23%)
HSVhsv(349, 58%, 32%)
CMYKcmyk(0%, 58%, 46.9%, 68.2%)
CIE-LABlab(20.32, 23.02, 4.69)
CIE-LCHlch(20.32, 23.50, 11.50°)
OKLaboklab(32.2% 0.0698 0.0122)
OKLCHoklch(32.2% 0.071 9.9)
XYZxyz(4.4017, 3.0683, 2.6455)
Luminance0.0307 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51222B #225148
analogous
#512242 #51222B #513122
triadic
#51222B #2B5122 #222B51
tetradic
#51222B #425122 #225148 #312251
square
#51222B #425122 #225148 #312251
split-complementary
#51222B #225131 #224251
monochromatic
#16090B #261014 #51222B #7C3442 #A74659

Accessibility & contrast

On white

13.01
#51222B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#51222B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51222B
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51222B#FFFFFF#000000##FFFFFF
##51222B1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2B2B
Deuteranopia (green-blind)
#37342A
Tritanopia (blue-blind)
#581D25
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #51222b;
/* rgb */ color: rgb(81, 34, 43);
/* oklch */ color: oklch(32.2% 0.071 9.9);
Tailwind
colors: {
  custom: {
    50: '#845f64',
    500: '#51222b',
    950: '#000000',
  },
}
SCSS
$custom: #51222b;
$custom-light: #845f64;
$custom-dark: #000000;
JSON
{
  "hex": "#51222b",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 43
  },
  "hsl": {
    "h": 348.511,
    "s": 40.87,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32202,
    "c": 0.0709,
    "h": 9.9
  },
  "luminance": 0.03068
}

Semantic roles & 50–950 ramp

primary
#51222B
secondary
#4A857A
accent
#D1B957
background
#F8F5F5
surface
#EFE9EA
border
#CAC5C6
text
#0B0405
muted
#7C7979

Preview Lab

Preview with #51222B

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

Preview Lab → · Contrast checker → · Palette generator →

#51222B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva