#5A131F#5A131F

#5A131F is a dark, moderate red. Relative luminance 0.027; OKLCH L 31.4% C 0.102 H 16.0°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#5A131F
RGBrgb(90, 19, 31)
HSLhsl(350, 65%, 21%)
HSVhsv(350, 79%, 35%)
CMYKcmyk(0%, 78.9%, 65.6%, 64.7%)
CIE-LABlab(18.97, 32.77, 11.53)
CIE-LCHlch(18.97, 34.74, 19.39°)
OKLaboklab(31.42% 0.0981 0.0281)
OKLCHoklch(31.42% 0.102 16)
XYZxyz(4.6971, 2.7390, 1.5774)
Luminance0.0274 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A131F #135A4E
analogous
#5A1343 #5A131F #5A2B13
triadic
#5A131F #1F5A13 #131F5A
tetradic
#5A131F #435A13 #135A4E #2B135A
square
#5A131F #435A13 #135A4E #2B135A
split-complementary
#5A131F #135A2B #13435A
monochromatic
#190509 #27080E #5A131F #8D1E30 #BF2842

Accessibility & contrast

On white

13.57
#5A131F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#5A131F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A131F
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A131F#FFFFFF#000000##FFFFFF
##5A131F1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26251F
Deuteranopia (green-blind)
#38331D
Tritanopia (blue-blind)
#630018
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a131f;
/* rgb */ color: rgb(90, 19, 31);
/* oklch */ color: oklch(31.4% 0.102 16.0);
Tailwind
colors: {
  custom: {
    50: '#8e575a',
    500: '#5a131f',
    950: '#000000',
  },
}
SCSS
$custom: #5a131f;
$custom-light: #8e575a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a131f",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 31
  },
  "hsl": {
    "h": 349.859,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31425,
    "c": 0.10204,
    "h": 16
  },
  "luminance": 0.02738
}

Semantic roles & 50–950 ramp

primary
#5A131F
secondary
#379283
accent
#E8CC40
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5A131F

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

Preview Lab → · Contrast checker → · Palette generator →

#5A131F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva