#331534#331534

#331534 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.5% C 0.069 H 326.1°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#331534
RGBrgb(51, 21, 52)
HSLhsl(298, 42%, 14%)
HSVhsv(298, 60%, 20%)
CMYKcmyk(1.9%, 59.6%, 0%, 79.6%)
CIE-LABlab(12.53, 20.65, -13.89)
CIE-LCHlch(12.53, 24.88, 326.07°)
OKLaboklab(25.45% 0.0569 -0.0382)
OKLCHoklch(25.45% 0.069 326.1)
XYZxyz(2.2532, 1.4882, 3.4167)
Luminance0.0149 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331534 #163415
analogous
#241534 #331534 #341526
triadic
#331534 #343315 #153433
tetradic
#331534 #342415 #163415 #152634
square
#331534 #342415 #163415 #152634
split-complementary
#331534 #263415 #153424
monochromatic
#150916 #150916 #331534 #5E2760 #89388B

Accessibility & contrast

On white

16.18
#331534 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#331534 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331534
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331534#FFFFFF#000000##FFFFFF
##3315341.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121E35
Deuteranopia (green-blind)
#1B2233
Tritanopia (blue-blind)
#341922
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #331534;
/* rgb */ color: rgb(51, 21, 52);
/* oklch */ color: oklch(25.5% 0.069 326.1);
Tailwind
colors: {
  custom: {
    50: '#6c546b',
    500: '#331534',
    950: '#000000',
  },
}
SCSS
$custom: #331534;
$custom-light: #6c546b;
$custom-dark: #000000;
JSON
{
  "hex": "#331534",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 52
  },
  "hsl": {
    "h": 298.065,
    "s": 42.466,
    "l": 14.314
  },
  "oklch": {
    "l": 0.25454,
    "c": 0.06855,
    "h": 326.1
  },
  "luminance": 0.01488
}

Semantic roles & 50–950 ramp

primary
#331534
secondary
#3B6B3A
accent
#D2565A
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #331534

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

Preview Lab → · Contrast checker → · Palette generator →

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