#331139#331139

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

Color values

HEX#331139
RGBrgb(51, 17, 57)
HSLhsl(291, 54%, 15%)
HSVhsv(291, 70%, 22%)
CMYKcmyk(10.5%, 70.2%, 0%, 77.6%)
CIE-LABlab(11.96, 24.19, -18.39)
CIE-LCHlch(11.96, 30.39, 322.77°)
OKLaboklab(25.13% 0.0641 -0.0512)
OKLCHoklch(25.13% 0.082 321.4)
XYZxyz(2.3041, 1.4002, 4.0190)
Luminance0.0140 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331139 #173911
analogous
#1F1139 #331139 #39112B
triadic
#331139 #393311 #113933
tetradic
#331139 #391F11 #173911 #112B39
square
#331139 #391F11 #173911 #112B39
split-complementary
#331139 #2B3911 #11391F
monochromatic
#150718 #150718 #331139 #5D1F68 #872D97

Accessibility & contrast

On white

16.41
#331139 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331139
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331139#FFFFFF#000000##FFFFFF
##3311391.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081D3A
Deuteranopia (green-blind)
#152138
Tritanopia (blue-blind)
#341723
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #331139;
/* rgb */ color: rgb(51, 17, 57);
/* oklch */ color: oklch(25.1% 0.082 321.4);
Tailwind
colors: {
  custom: {
    50: '#6c516f',
    500: '#331139',
    950: '#000000',
  },
}
SCSS
$custom: #331139;
$custom-light: #6c516f;
$custom-dark: #000000;
JSON
{
  "hex": "#331139",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 57
  },
  "hsl": {
    "h": 291,
    "s": 54.054,
    "l": 14.51
  },
  "oklch": {
    "l": 0.25134,
    "c": 0.082,
    "h": 321.4
  },
  "luminance": 0.014
}

Semantic roles & 50–950 ramp

primary
#331139
secondary
#3D7234
accent
#DD4A60
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #331139

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

Preview Lab → · Contrast checker → · Palette generator →

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