#52231F#52231F

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

Color values

HEX#52231F
RGBrgb(82, 35, 31)
HSLhsl(5, 45%, 22%)
HSVhsv(5, 62%, 32%)
CMYKcmyk(0%, 57.3%, 62.2%, 67.8%)
CIE-LABlab(20.42, 21.56, 13.15)
CIE-LCHlch(20.42, 25.26, 31.37°)
OKLaboklab(32.22% 0.0637 0.0321)
OKLCHoklch(32.22% 0.071 26.7)
XYZxyz(4.3284, 3.0953, 1.6656)
Luminance0.0309 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52231F #1F4E52
analogous
#521F35 #52231F #523D1F
triadic
#52231F #1F5223 #231F52
tetradic
#52231F #35521F #1F4E52 #3D1F52
square
#52231F #35521F #1F4E52 #3D1F52
split-complementary
#52231F #1F523D #1F3552
monochromatic
#160908 #26100E #52231F #7E3630 #AB4941

Accessibility & contrast

On white

12.97
#52231F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#52231F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52231F
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52231F#FFFFFF#000000##FFFFFF
##52231F1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2B1E
Deuteranopia (green-blind)
#3A351E
Tritanopia (blue-blind)
#5A1B22
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #52231f;
/* rgb */ color: rgb(82, 35, 31);
/* oklch */ color: oklch(32.2% 0.071 26.7);
Tailwind
colors: {
  custom: {
    50: '#865f5a',
    500: '#52231f',
    950: '#000000',
  },
}
SCSS
$custom: #52231f;
$custom-light: #865f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#52231f",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 31
  },
  "hsl": {
    "h": 4.706,
    "s": 45.133,
    "l": 22.157
  },
  "oklch": {
    "l": 0.3222,
    "c": 0.07131,
    "h": 26.7
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#52231F
secondary
#468287
accent
#CBD553
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0503
muted
#7D7978

Preview Lab

Preview with #52231F

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

Preview Lab → · Contrast checker → · Palette generator →

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