#331A2F#331A2F

#331A2F is a dark, muted purple. Relative luminance 0.016; OKLCH L 26.1% C 0.052 H 333.0°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#331A2F
RGBrgb(51, 26, 47)
HSLhsl(310, 32%, 15%)
HSVhsv(310, 49%, 20%)
CMYKcmyk(0%, 49%, 7.8%, 80%)
CIE-LABlab(13.52, 16.28, -8.75)
CIE-LCHlch(13.52, 18.48, 331.73°)
OKLaboklab(26.1% 0.0465 -0.0236)
OKLCHoklch(26.1% 0.052 333)
XYZxyz(2.2477, 1.6480, 2.8885)
Luminance0.0165 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A2F #1A331E
analogous
#2A1A33 #331A2F #331A22
triadic
#331A2F #2F331A #1A2F33
tetradic
#331A2F #332A1A #1A331E #1A2233
square
#331A2F #332A1A #1A331E #1A2233
split-complementary
#331A2F #22331A #1A332A
monochromatic
#140A13 #140A13 #331A2F #5C2F54 #84437A

Accessibility & contrast

On white

15.79
#331A2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#331A2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A2F
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A2F#FFFFFF#000000##FFFFFF
##331A2F1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2030
Deuteranopia (green-blind)
#20242E
Tritanopia (blue-blind)
#351B22
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331a2f;
/* rgb */ color: rgb(51, 26, 47);
/* oklch */ color: oklch(26.1% 0.052 333.0);
Tailwind
colors: {
  custom: {
    50: '#6b5767',
    500: '#331a2f',
    950: '#000000',
  },
}
SCSS
$custom: #331a2f;
$custom-light: #6b5767;
$custom-dark: #000000;
JSON
{
  "hex": "#331a2f",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 47
  },
  "hsl": {
    "h": 309.6,
    "s": 32.468,
    "l": 15.098
  },
  "oklch": {
    "l": 0.26103,
    "c": 0.05216,
    "h": 333
  },
  "luminance": 0.01648
}

Semantic roles & 50–950 ramp

primary
#331A2F
secondary
#416847
accent
#C9705F
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#070306
muted
#7A787A

Preview Lab

Preview with #331A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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