#331B3D#331B3D

#331B3D is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.1% C 0.068 H 315.2°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#331B3D
RGBrgb(51, 27, 61)
HSLhsl(282, 39%, 17%)
HSVhsv(282, 56%, 24%)
CMYKcmyk(16.4%, 55.7%, 0%, 76.1%)
CIE-LABlab(14.54, 19.01, -17.15)
CIE-LCHlch(14.54, 25.60, 317.94°)
OKLaboklab(27.11% 0.048 -0.0476)
OKLCHoklch(27.11% 0.068 315.2)
XYZxyz(2.5993, 1.8247, 4.6292)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B3D #253D1B
analogous
#221B3D #331B3D #3D1B36
triadic
#331B3D #3D331B #1B3D33
tetradic
#331B3D #3D221B #253D1B #1B363D
square
#331B3D #3D221B #253D1B #1B363D
split-complementary
#331B3D #363D1B #1B3D22
monochromatic
#120915 #120915 #331B3D #562E67 #7A4192

Accessibility & contrast

On white

15.38
#331B3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#331B3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331B3D
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B3D#FFFFFF#000000##FFFFFF
##331B3D1.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14233E
Deuteranopia (green-blind)
#1B253C
Tritanopia (blue-blind)
#322029
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331b3d;
/* rgb */ color: rgb(51, 27, 61);
/* oklch */ color: oklch(27.1% 0.068 315.2);
Tailwind
colors: {
  custom: {
    50: '#6c5872',
    500: '#331b3d',
    950: '#000000',
  },
}
SCSS
$custom: #331b3d;
$custom-light: #6c5872;
$custom-dark: #000000;
JSON
{
  "hex": "#331b3d",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 61
  },
  "hsl": {
    "h": 282.353,
    "s": 38.636,
    "l": 17.255
  },
  "oklch": {
    "l": 0.27113,
    "c": 0.06766,
    "h": 315.2
  },
  "luminance": 0.01825
}

Semantic roles & 50–950 ramp

primary
#331B3D
secondary
#507242
accent
#CF597C
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070308
muted
#7A787B

Preview Lab

Preview with #331B3D

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

Preview Lab → · Contrast checker → · Palette generator →

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