#331A1C#331A1C

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

Color values

HEX#331A1C
RGBrgb(51, 26, 28)
HSLhsl(355, 32%, 15%)
HSVhsv(355, 49%, 20%)
CMYKcmyk(0%, 49%, 45.1%, 80%)
CIE-LABlab(12.78, 12.71, 4.01)
CIE-LCHlch(12.78, 13.33, 17.52°)
OKLaboklab(25.3% 0.0385 0.0104)
OKLCHoklch(25.3% 0.04 15.2)
XYZxyz(1.9443, 1.5266, 1.2906)
Luminance0.0153 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A1C #1A3331
analogous
#331A28 #331A1C #33241A
triadic
#331A1C #1C331A #1A1C33
tetradic
#331A1C #28331A #1A3331 #241A33
square
#331A1C #28331A #1A3331 #241A33
split-complementary
#331A1C #1A3324 #1A2833
monochromatic
#140A0B #140A0B #331A1C #5C2F32 #844349

Accessibility & contrast

On white

16.09
#331A1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331A1C
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A1C#FFFFFF#000000##FFFFFF
##331A1C1.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F1E1C
Deuteranopia (green-blind)
#25231C
Tritanopia (blue-blind)
#37171B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #331a1c;
/* rgb */ color: rgb(51, 26, 28);
/* oklch */ color: oklch(25.3% 0.040 15.2);
Tailwind
colors: {
  custom: {
    50: '#6c5757',
    500: '#331a1c',
    950: '#000000',
  },
}
SCSS
$custom: #331a1c;
$custom-light: #6c5757;
$custom-dark: #000000;
JSON
{
  "hex": "#331a1c",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 28
  },
  "hsl": {
    "h": 355.2,
    "s": 32.468,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25295,
    "c": 0.03989,
    "h": 15.2
  },
  "luminance": 0.01526
}

Semantic roles & 50–950 ramp

primary
#331A1C
secondary
#416865
accent
#C9C05F
background
#F6F5F5
surface
#EBE9E9
border
#C6C5C5
text
#070303
muted
#7A7878

Preview Lab

Preview with #331A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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