#331B3A#331B3A

#331B3A is a dark, moderate purple. Relative luminance 0.018; OKLCH L 26.9% C 0.064 H 318.3°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#331B3A
RGBrgb(51, 27, 58)
HSLhsl(286, 36%, 17%)
HSVhsv(286, 53%, 23%)
CMYKcmyk(12.1%, 53.4%, 0%, 77.3%)
CIE-LABlab(14.36, 18.24, -15.31)
CIE-LCHlch(14.36, 23.81, 319.99°)
OKLaboklab(26.92% 0.0475 -0.0423)
OKLCHoklch(26.92% 0.064 318.3)
XYZxyz(2.5208, 1.7932, 4.2155)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B3A #223A1B
analogous
#241B3A #331B3A #3A1B32
triadic
#331B3A #3A331B #1B3A33
tetradic
#331B3A #3A241B #223A1B #1B323A
square
#331B3A #3A241B #223A1B #1B323A
split-complementary
#331B3A #323A1B #1B3A24
monochromatic
#120A15 #120A15 #331B3A #582E64 #7C428E

Accessibility & contrast

On white

15.46
#331B3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331B3A
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B3A#FFFFFF#000000##FFFFFF
##331B3A1.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16233B
Deuteranopia (green-blind)
#1D2539
Tritanopia (blue-blind)
#331F27
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331b3a;
/* rgb */ color: rgb(51, 27, 58);
/* oklch */ color: oklch(26.9% 0.064 318.3);
Tailwind
colors: {
  custom: {
    50: '#6b5870',
    500: '#331b3a',
    950: '#000000',
  },
}
SCSS
$custom: #331b3a;
$custom-light: #6b5870;
$custom-dark: #000000;
JSON
{
  "hex": "#331b3a",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 58
  },
  "hsl": {
    "h": 286.452,
    "s": 36.471,
    "l": 16.667
  },
  "oklch": {
    "l": 0.26924,
    "c": 0.06363,
    "h": 318.3
  },
  "luminance": 0.01793
}

Semantic roles & 50–950 ramp

primary
#331B3A
secondary
#4C6F42
accent
#CC5B75
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070307
muted
#7A787A

Preview Lab

Preview with #331B3A

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

Preview Lab → · Contrast checker → · Palette generator →

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