#331335#331335

#331335 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.2% C 0.074 H 325.2°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#331335
RGBrgb(51, 19, 53)
HSLhsl(296, 47%, 14%)
HSVhsv(296, 64%, 21%)
CMYKcmyk(3.8%, 64.2%, 0%, 79.2%)
CIE-LABlab(12.13, 22.10, -15.23)
CIE-LCHlch(12.13, 26.84, 325.42°)
OKLaboklab(25.18% 0.0605 -0.042)
OKLCHoklch(25.18% 0.074 325.2)
XYZxyz(2.2407, 1.4267, 3.5248)
Luminance0.0143 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331335 #153513
analogous
#221335 #331335 #351326
triadic
#331335 #353313 #133533
tetradic
#331335 #352213 #153513 #132635
square
#331335 #352213 #153513 #132635
split-complementary
#331335 #263513 #133522
monochromatic
#160817 #160817 #331335 #5E2362 #8A338F

Accessibility & contrast

On white

16.34
#331335 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#331335 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331335
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331335#FFFFFF#000000##FFFFFF
##3313351.0016.341.2916.34
#FFFFFF16.341.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331335;
/* rgb */ color: rgb(51, 19, 53);
/* oklch */ color: oklch(25.2% 0.074 325.2);
Tailwind
colors: {
  custom: {
    50: '#6c526c',
    500: '#331335',
    950: '#000000',
  },
}
SCSS
$custom: #331335;
$custom-light: #6c526c;
$custom-dark: #000000;
JSON
{
  "hex": "#331335",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 53
  },
  "hsl": {
    "h": 296.471,
    "s": 47.222,
    "l": 14.118
  },
  "oklch": {
    "l": 0.2518,
    "c": 0.07366,
    "h": 325.2
  },
  "luminance": 0.01427
}

Semantic roles & 50–950 ramp

primary
#331335
secondary
#3A6D37
accent
#D75159
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #331335

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

Preview Lab → · Contrast checker → · Palette generator →

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