#331A1F#331A1F

#331A1F is a dark, muted red. Relative luminance 0.015; OKLCH L 25.4% C 0.040 H 7.5°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#331A1F
RGBrgb(51, 26, 31)
HSLhsl(348, 32%, 15%)
HSVhsv(348, 49%, 20%)
CMYKcmyk(0%, 49%, 39.2%, 80%)
CIE-LABlab(12.87, 13.18, 1.95)
CIE-LCHlch(12.87, 13.32, 8.41°)
OKLaboklab(25.4% 0.04 0.0052)
OKLCHoklch(25.4% 0.04 7.5)
XYZxyz(1.9820, 1.5417, 1.4892)
Luminance0.0154 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A1F #1A332E
analogous
#331A2B #331A1F #33211A
triadic
#331A1F #1F331A #1A1F33
tetradic
#331A1F #2B331A #1A332E #211A33
square
#331A1F #2B331A #1A332E #211A33
split-complementary
#331A1F #1A3321 #1A2B33
monochromatic
#140A0C #140A0C #331A1F #5C2F38 #844350

Accessibility & contrast

On white

16.05
#331A1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#331A1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A1F
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A1F#FFFFFF#000000##FFFFFF
##331A1F1.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E1E1F
Deuteranopia (green-blind)
#24231E
Tritanopia (blue-blind)
#37181C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #331a1f;
/* rgb */ color: rgb(51, 26, 31);
/* oklch */ color: oklch(25.4% 0.040 7.5);
Tailwind
colors: {
  custom: {
    50: '#6c575a',
    500: '#331a1f',
    950: '#000000',
  },
}
SCSS
$custom: #331a1f;
$custom-light: #6c575a;
$custom-dark: #000000;
JSON
{
  "hex": "#331a1f",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 31
  },
  "hsl": {
    "h": 348,
    "s": 32.468,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25398,
    "c": 0.04031,
    "h": 7.5
  },
  "luminance": 0.01542
}

Semantic roles & 50–950 ramp

primary
#331A1F
secondary
#416860
accent
#C9B45F
background
#F6F5F5
surface
#EBE9E9
border
#C6C5C5
text
#070303
muted
#7A7878

Preview Lab

Preview with #331A1F

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

Preview Lab → · Contrast checker → · Palette generator →

#331A1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva