#331B3F#331B3F

#331B3F is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.2% C 0.070 H 313.4°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#331B3F
RGBrgb(51, 27, 63)
HSLhsl(280, 40%, 18%)
HSVhsv(280, 57%, 25%)
CMYKcmyk(19%, 57.1%, 0%, 75.3%)
CIE-LABlab(14.66, 19.54, -18.36)
CIE-LCHlch(14.66, 26.81, 316.77°)
OKLaboklab(27.24% 0.0483 -0.0512)
OKLCHoklch(27.24% 0.07 313.4)
XYZxyz(2.6542, 1.8466, 4.9183)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B3F #273F1B
analogous
#211B3F #331B3F #3F1B39
triadic
#331B3F #3F331B #1B3F33
tetradic
#331B3F #3F211B #273F1B #1B393F
square
#331B3F #3F211B #273F1B #1B393F
split-complementary
#331B3F #393F1B #1B3F21
monochromatic
#110915 #110915 #331B3F #562D6A #784095

Accessibility & contrast

On white

15.34
#331B3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331B3F
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B3F#FFFFFF#000000##FFFFFF
##331B3F1.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132440
Deuteranopia (green-blind)
#1A263E
Tritanopia (blue-blind)
#32212A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331b3f;
/* rgb */ color: rgb(51, 27, 63);
/* oklch */ color: oklch(27.2% 0.070 313.4);
Tailwind
colors: {
  custom: {
    50: '#6c5874',
    500: '#331b3f',
    950: '#000000',
  },
}
SCSS
$custom: #331b3f;
$custom-light: #6c5874;
$custom-dark: #000000;
JSON
{
  "hex": "#331b3f",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 63
  },
  "hsl": {
    "h": 280,
    "s": 40,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27243,
    "c": 0.0704,
    "h": 313.4
  },
  "luminance": 0.01847
}

Semantic roles & 50–950 ramp

primary
#331B3F
secondary
#527441
accent
#D05880
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #331B3F

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

Preview Lab → · Contrast checker → · Palette generator →

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