#331538#331538

#331538 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.7% C 0.073 H 321.7°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#331538
RGBrgb(51, 21, 56)
HSLhsl(291, 45%, 15%)
HSVhsv(291, 63%, 22%)
CMYKcmyk(8.9%, 62.5%, 0%, 78%)
CIE-LABlab(12.77, 21.59, -16.39)
CIE-LCHlch(12.77, 27.10, 322.80°)
OKLaboklab(25.71% 0.0576 -0.0454)
OKLCHoklch(25.71% 0.073 321.7)
XYZxyz(2.3471, 1.5258, 3.9115)
Luminance0.0153 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331538 #1A3815
analogous
#221538 #331538 #38152B
triadic
#331538 #383315 #153833
tetradic
#331538 #382215 #1A3815 #152B38
square
#331538 #382215 #1A3815 #152B38
split-complementary
#331538 #2B3815 #153822
monochromatic
#140816 #140816 #331538 #5C2665 #843691

Accessibility & contrast

On white

16.09
#331538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#331538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331538
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331538#FFFFFF#000000##FFFFFF
##3315381.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1F39
Deuteranopia (green-blind)
#192237
Tritanopia (blue-blind)
#341A24
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #331538;
/* rgb */ color: rgb(51, 21, 56);
/* oklch */ color: oklch(25.7% 0.073 321.7);
Tailwind
colors: {
  custom: {
    50: '#6c546e',
    500: '#331538',
    950: '#000000',
  },
}
SCSS
$custom: #331538;
$custom-light: #6c546e;
$custom-dark: #000000;
JSON
{
  "hex": "#331538",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 56
  },
  "hsl": {
    "h": 291.429,
    "s": 45.455,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25707,
    "c": 0.0733,
    "h": 321.7
  },
  "luminance": 0.01526
}

Semantic roles & 50–950 ramp

primary
#331538
secondary
#416F3A
accent
#D55365
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070307
muted
#7A787A

Preview Lab

Preview with #331538

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

Preview Lab → · Contrast checker → · Palette generator →

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