#331334#331334

#331334 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.1% C 0.073 H 326.3°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#331334
RGBrgb(51, 19, 52)
HSLhsl(298, 46%, 14%)
HSVhsv(298, 63%, 20%)
CMYKcmyk(1.9%, 63.5%, 0%, 79.6%)
CIE-LABlab(12.07, 21.87, -14.61)
CIE-LCHlch(12.07, 26.30, 326.26°)
OKLaboklab(25.12% 0.0604 -0.0402)
OKLCHoklch(25.12% 0.073 326.3)
XYZxyz(2.2179, 1.4176, 3.4049)
Luminance0.0142 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331334 #143413
analogous
#231334 #331334 #341325
triadic
#331334 #343313 #133433
tetradic
#331334 #342313 #143413 #132534
square
#331334 #342313 #143413 #132534
split-complementary
#331334 #253413 #133423
monochromatic
#160816 #160816 #331334 #5F2361 #8B348E

Accessibility & contrast

On white

16.36
#331334 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#331334 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331334
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331334#FFFFFF#000000##FFFFFF
##3313341.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1D35
Deuteranopia (green-blind)
#192133
Tritanopia (blue-blind)
#341721
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #331334;
/* rgb */ color: rgb(51, 19, 52);
/* oklch */ color: oklch(25.1% 0.073 326.3);
Tailwind
colors: {
  custom: {
    50: '#6c526b',
    500: '#331334',
    950: '#000000',
  },
}
SCSS
$custom: #331334;
$custom-light: #6c526b;
$custom-dark: #000000;
JSON
{
  "hex": "#331334",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 52
  },
  "hsl": {
    "h": 298.182,
    "s": 46.479,
    "l": 13.922
  },
  "oklch": {
    "l": 0.25116,
    "c": 0.07254,
    "h": 326.3
  },
  "luminance": 0.01417
}

Semantic roles & 50–950 ramp

primary
#331334
secondary
#396C37
accent
#D65256
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #331334

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

Preview Lab → · Contrast checker → · Palette generator →

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