#52131F#52131F

#52131F is a dark, moderate red. Relative luminance 0.024; OKLCH L 29.9% C 0.093 H 13.9°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#52131F
RGBrgb(82, 19, 31)
HSLhsl(349, 62%, 20%)
HSVhsv(349, 77%, 32%)
CMYKcmyk(0%, 76.8%, 62.2%, 67.8%)
CIE-LABlab(17.27, 29.94, 8.96)
CIE-LCHlch(17.27, 31.25, 16.67°)
OKLaboklab(29.85% 0.0901 0.0223)
OKLCHoklch(29.85% 0.093 13.9)
XYZxyz(3.9602, 2.3591, 1.5429)
Luminance0.0236 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52131F #135246
analogous
#52133F #52131F #522613
triadic
#52131F #1F5213 #131F52
tetradic
#52131F #3F5213 #135246 #261352
square
#52131F #3F5213 #135246 #261352
split-complementary
#52131F #135226 #133F52
monochromatic
#190609 #20070C #52131F #841F32 #B52A45

Accessibility & contrast

On white

14.27
#52131F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#52131F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52131F
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52131F#FFFFFF#000000##FFFFFF
##52131F1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52131f;
/* rgb */ color: rgb(82, 19, 31);
/* oklch */ color: oklch(29.9% 0.093 13.9);
Tailwind
colors: {
  custom: {
    50: '#87565a',
    500: '#52131f',
    950: '#000000',
  },
}
SCSS
$custom: #52131f;
$custom-light: #87565a;
$custom-dark: #000000;
JSON
{
  "hex": "#52131f",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 31
  },
  "hsl": {
    "h": 348.571,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29852,
    "c": 0.09286,
    "h": 13.9
  },
  "luminance": 0.02359
}

Semantic roles & 50–950 ramp

primary
#52131F
secondary
#368A7A
accent
#E5C642
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #52131F

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

Preview Lab → · Contrast checker → · Palette generator →

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