#331F1F#331F1F

#331F1F is a dark, muted red. Relative luminance 0.018; OKLCH L 26.5% C 0.031 H 19.4°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#331F1F
RGBrgb(51, 31, 31)
HSLhsl(0, 24%, 16%)
HSVhsv(0, 39%, 20%)
CMYKcmyk(0%, 39.2%, 39.2%, 80%)
CIE-LABlab(14.30, 9.74, 3.99)
CIE-LCHlch(14.30, 10.53, 22.29°)
OKLaboklab(26.5% 0.0296 0.0104)
OKLCHoklch(26.5% 0.031 19.4)
XYZxyz(2.1026, 1.7829, 1.5294)
Luminance0.0178 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F1F #1F3333
analogous
#331F29 #331F1F #33291F
triadic
#331F1F #1F331F #1F1F33
tetradic
#331F1F #29331F #1F3333 #291F33
square
#331F1F #29331F #1F3333 #291F33
split-complementary
#331F1F #1F3329 #1F2933
monochromatic
#130C0C #130C0C #331F1F #593636 #7F4D4D

Accessibility & contrast

On white

15.48
#331F1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#331F1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F1F
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F1F#FFFFFF#000000##FFFFFF
##331F1F1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23221F
Deuteranopia (green-blind)
#28261F
Tritanopia (blue-blind)
#371D1F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331f1f;
/* rgb */ color: rgb(51, 31, 31);
/* oklch */ color: oklch(26.5% 0.031 19.4);
Tailwind
colors: {
  custom: {
    50: '#6b5a5a',
    500: '#331f1f',
    950: '#000000',
  },
}
SCSS
$custom: #331f1f;
$custom-light: #6b5a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#331f1f",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 31
  },
  "hsl": {
    "h": 0,
    "s": 24.39,
    "l": 16.078
  },
  "oklch": {
    "l": 0.26495,
    "c": 0.03136,
    "h": 19.4
  },
  "luminance": 0.01783
}

Semantic roles & 50–950 ramp

primary
#331F1F
secondary
#486666
accent
#C1C167
background
#F6F5F5
surface
#EBE9E9
border
#C6C5C5
text
#070403
muted
#7A7978

Preview Lab

Preview with #331F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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