#331584#331584

#331584 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.167 H 284.8°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#331584
RGBrgb(51, 21, 132)
HSLhsl(256, 73%, 30%)
HSVhsv(256, 84%, 52%)
CMYKcmyk(61.4%, 84.1%, 0%, 48.2%)
CIE-LABlab(19.66, 43.10, -56.02)
CIE-LCHlch(19.66, 70.68, 307.57°)
OKLaboklab(32.71% 0.0425 -0.1614)
OKLCHoklch(32.71% 0.167 284.8)
XYZxyz(5.7970, 2.9057, 22.0807)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331584 #668415
analogous
#152F84 #331584 #6A1584
triadic
#331584 #843315 #158433
tetradic
#331584 #84152F #668415 #15846A
square
#331584 #84152F #668415 #15846A
split-complementary
#331584 #846A15 #2F8415
monochromatic
#0A041A #1F0D4F #331584 #471DB9 #6335DF

Accessibility & contrast

On white

13.28
#331584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#331584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331584
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331584#FFFFFF#000000##FFFFFF
##3315841.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#00374E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #331584;
/* rgb */ color: rgb(51, 21, 132);
/* oklch */ color: oklch(32.7% 0.167 284.8);
Tailwind
colors: {
  custom: {
    50: '#7658a9',
    500: '#331584',
    950: '#000000',
  },
}
SCSS
$custom: #331584;
$custom-light: #7658a9;
$custom-dark: #000000;
JSON
{
  "hex": "#331584",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 256.216,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.3271,
    "c": 0.16695,
    "h": 284.8
  },
  "luminance": 0.02906
}

Semantic roles & 50–950 ramp

primary
#331584
secondary
#97B93C
accent
#EF39BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #331584

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

Preview Lab → · Contrast checker → · Palette generator →

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