#331566#331566

#331566 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.131 H 293.6°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#331566
RGBrgb(51, 21, 102)
HSLhsl(262, 66%, 24%)
HSVhsv(262, 79%, 40%)
CMYKcmyk(50%, 79.4%, 0%, 60%)
CIE-LABlab(16.50, 34.28, -41.89)
CIE-LCHlch(16.50, 54.13, 309.29°)
OKLaboklab(29.56% 0.0525 -0.1201)
OKLCHoklch(29.56% 0.131 293.6)
XYZxyz(4.0310, 2.1993, 12.7799)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331566 #486615
analogous
#152066 #331566 #5C1566
triadic
#331566 #663315 #156633
tetradic
#331566 #661520 #486615 #15665C
square
#331566 #661520 #486615 #15665C
split-complementary
#331566 #665C15 #206615
monochromatic
#0D0519 #1A0B33 #331566 #4C1F99 #662ACC

Accessibility & contrast

On white

14.59
#331566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#331566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331566
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331566#FFFFFF#000000##FFFFFF
##3315661.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002764
Tritanopia (blue-blind)
#242B3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331566;
/* rgb */ color: rgb(51, 21, 102);
/* oklch */ color: oklch(29.6% 0.131 293.6);
Tailwind
colors: {
  custom: {
    50: '#715692',
    500: '#331566',
    950: '#000000',
  },
}
SCSS
$custom: #331566;
$custom-light: #715692;
$custom-dark: #000000;
JSON
{
  "hex": "#331566",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 262.222,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29559,
    "c": 0.13108,
    "h": 293.6
  },
  "luminance": 0.02199
}

Semantic roles & 50–950 ramp

primary
#331566
secondary
#789D3A
accent
#E93FAA
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331566

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

Preview Lab → · Contrast checker → · Palette generator →

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