#331F38#331F38

#331F38 is a dark, muted purple. Relative luminance 0.020; OKLCH L 27.6% C 0.052 H 319.4°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#331F38
RGBrgb(51, 31, 56)
HSLhsl(288, 29%, 17%)
HSVhsv(288, 45%, 22%)
CMYKcmyk(8.9%, 44.6%, 0%, 78%)
CIE-LABlab(15.33, 15.03, -12.39)
CIE-LCHlch(15.33, 19.48, 320.48°)
OKLaboklab(27.61% 0.0397 -0.034)
OKLCHoklch(27.61% 0.052 319.4)
XYZxyz(2.5689, 1.9694, 3.9854)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F38 #24381F
analogous
#271F38 #331F38 #381F31
triadic
#331F38 #38331F #1F3833
tetradic
#331F38 #38271F #24381F #1F3138
square
#331F38 #38271F #24381F #1F3138
split-complementary
#331F38 #31381F #1F3827
monochromatic
#120B14 #120B14 #331F38 #57355F #7B4B87

Accessibility & contrast

On white

15.07
#331F38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#331F38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F38
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F38#FFFFFF#000000##FFFFFF
##331F381.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2539
Deuteranopia (green-blind)
#212737
Tritanopia (blue-blind)
#332228
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331f38;
/* rgb */ color: rgb(51, 31, 56);
/* oklch */ color: oklch(27.6% 0.052 319.4);
Tailwind
colors: {
  custom: {
    50: '#6b5b6e',
    500: '#331f38',
    950: '#000000',
  },
}
SCSS
$custom: #331f38;
$custom-light: #6b5b6e;
$custom-dark: #000000;
JSON
{
  "hex": "#331f38",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 56
  },
  "hsl": {
    "h": 288,
    "s": 28.736,
    "l": 17.059
  },
  "oklch": {
    "l": 0.2761,
    "c": 0.0523,
    "h": 319.4
  },
  "luminance": 0.01969
}

Semantic roles & 50–950 ramp

primary
#331F38
secondary
#4F6B47
accent
#C56376
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060407
muted
#7A797A

Preview Lab

Preview with #331F38

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

Preview Lab → · Contrast checker → · Palette generator →

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