#312331#312331

#312331 is a dark, muted purple. Relative luminance 0.021; OKLCH L 27.9% C 0.032 H 326.4°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#312331
RGBrgb(49, 35, 49)
HSLhsl(300, 17%, 16%)
HSVhsv(300, 29%, 19%)
CMYKcmyk(0%, 28.6%, 0%, 80.8%)
CIE-LABlab(15.89, 9.70, -6.61)
CIE-LCHlch(15.89, 11.73, 325.74°)
OKLaboklab(27.87% 0.0268 -0.0178)
OKLCHoklch(27.87% 0.032 326.4)
XYZxyz(2.4220, 2.0768, 3.1784)
Luminance0.0208 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312331 #233123
analogous
#2A2331 #312331 #31232A
triadic
#312331 #313123 #233131
tetradic
#312331 #312A23 #233123 #232A31
square
#312331 #312A23 #233123 #232A31
split-complementary
#312331 #2A3123 #23312A
monochromatic
#120D12 #120D12 #312331 #553D55 #785678

Accessibility & contrast

On white

14.84
#312331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#312331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312331
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312331#FFFFFF#000000##FFFFFF
##3123311.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222632
Deuteranopia (green-blind)
#252830
Tritanopia (blue-blind)
#322428
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #312331;
/* rgb */ color: rgb(49, 35, 49);
/* oklch */ color: oklch(27.9% 0.032 326.4);
Tailwind
colors: {
  custom: {
    50: '#695e69',
    500: '#312331',
    950: '#000000',
  },
}
SCSS
$custom: #312331;
$custom-light: #695e69;
$custom-dark: #000000;
JSON
{
  "hex": "#312331",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 49
  },
  "hsl": {
    "h": 300,
    "s": 16.667,
    "l": 16.471
  },
  "oklch": {
    "l": 0.27866,
    "c": 0.03214,
    "h": 326.4
  },
  "luminance": 0.02077
}

Semantic roles & 50–950 ramp

primary
#312331
secondary
#4E624E
accent
#B96E6E
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060406
muted
#7A797A

Preview Lab

Preview with #312331

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

Preview Lab → · Contrast checker → · Palette generator →

#312331 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva