#331564#331564

#331564 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.129 H 294.3°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#331564
RGBrgb(51, 21, 100)
HSLhsl(263, 65%, 24%)
HSVhsv(263, 79%, 39%)
CMYKcmyk(49%, 79%, 0%, 60.8%)
CIE-LABlab(16.31, 33.69, -40.89)
CIE-LCHlch(16.31, 52.98, 309.49°)
OKLaboklab(29.36% 0.053 -0.1172)
OKLCHoklch(29.36% 0.129 294.3)
XYZxyz(3.9330, 2.1601, 12.2638)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331564 #466415
analogous
#151E64 #331564 #5A1564
triadic
#331564 #643315 #156433
tetradic
#331564 #64151E #466415 #15645A
square
#331564 #64151E #466415 #15645A
split-complementary
#331564 #645A15 #1E6415
monochromatic
#0D0519 #190A31 #331564 #4D2097 #672AC9

Accessibility & contrast

On white

14.66
#331564 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#331564 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331564
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331564#FFFFFF#000000##FFFFFF
##3315641.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002762
Tritanopia (blue-blind)
#252A3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331564;
/* rgb */ color: rgb(51, 21, 100);
/* oklch */ color: oklch(29.4% 0.129 294.3);
Tailwind
colors: {
  custom: {
    50: '#705691',
    500: '#331564',
    950: '#000000',
  },
}
SCSS
$custom: #331564;
$custom-light: #705691;
$custom-dark: #000000;
JSON
{
  "hex": "#331564",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 100
  },
  "hsl": {
    "h": 262.785,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29362,
    "c": 0.12863,
    "h": 294.3
  },
  "luminance": 0.0216
}

Semantic roles & 50–950 ramp

primary
#331564
secondary
#769B3A
accent
#E840A8
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331564

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

Preview Lab → · Contrast checker → · Palette generator →

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