#51242F#51242F

#51242F is a dark, moderate red. Relative luminance 0.032; OKLCH L 32.7% C 0.068 H 6.1°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#51242F
RGBrgb(81, 36, 47)
HSLhsl(345, 38%, 23%)
HSVhsv(345, 56%, 32%)
CMYKcmyk(0%, 55.6%, 42%, 68.2%)
CIE-LABlab(20.89, 22.37, 2.73)
CIE-LCHlch(20.89, 22.53, 6.96°)
OKLaboklab(32.68% 0.068 0.0073)
OKLCHoklch(32.68% 0.068 6.1)
XYZxyz(4.5375, 3.2168, 3.0707)
Luminance0.0322 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51242F #245146
analogous
#512445 #51242F #512F24
triadic
#51242F #2F5124 #242F51
tetradic
#51242F #455124 #245146 #2F2451
square
#51242F #455124 #245146 #2F2451
split-complementary
#51242F #24512F #244551
monochromatic
#15090C #271116 #51242F #7B3748 #A64A60

Accessibility & contrast

On white

12.78
#51242F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#51242F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51242F
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51242F#FFFFFF#000000##FFFFFF
##51242F1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2D2F
Deuteranopia (green-blind)
#38362E
Tritanopia (blue-blind)
#582028
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #51242f;
/* rgb */ color: rgb(81, 36, 47);
/* oklch */ color: oklch(32.7% 0.068 6.1);
Tailwind
colors: {
  custom: {
    50: '#846067',
    500: '#51242f',
    950: '#000000',
  },
}
SCSS
$custom: #51242f;
$custom-light: #846067;
$custom-dark: #000000;
JSON
{
  "hex": "#51242f",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 47
  },
  "hsl": {
    "h": 345.333,
    "s": 38.462,
    "l": 22.941
  },
  "oklch": {
    "l": 0.32676,
    "c": 0.06835,
    "h": 6.1
  },
  "luminance": 0.03216
}

Semantic roles & 50–950 ramp

primary
#51242F
secondary
#4C8577
accent
#CEB259
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0506
muted
#7C797A

Preview Lab

Preview with #51242F

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

Preview Lab → · Contrast checker → · Palette generator →

#51242F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva