#331561#331561

#331561 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.125 H 295.5°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#331561
RGBrgb(51, 21, 97)
HSLhsl(264, 64%, 23%)
HSVhsv(264, 78%, 38%)
CMYKcmyk(47.4%, 78.4%, 0%, 62%)
CIE-LABlab(16.02, 32.81, -39.37)
CIE-LCHlch(16.02, 51.25, 309.81°)
OKLaboklab(29.07% 0.0538 -0.1127)
OKLCHoklch(29.07% 0.125 295.5)
XYZxyz(3.7905, 2.1031, 11.5132)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331561 #436115
analogous
#151D61 #331561 #591561
triadic
#331561 #613315 #156133
tetradic
#331561 #61151D #436115 #156159
square
#331561 #61151D #436115 #156159
split-complementary
#331561 #615915 #1D6115
monochromatic
#0D0519 #190A2F #331561 #4D2093 #682BC6

Accessibility & contrast

On white

14.78
#331561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#331561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331561
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331561#FFFFFF#000000##FFFFFF
##3315611.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#002760
Tritanopia (blue-blind)
#26293A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331561;
/* rgb */ color: rgb(51, 21, 97);
/* oklch */ color: oklch(29.1% 0.125 295.5);
Tailwind
colors: {
  custom: {
    50: '#70568f',
    500: '#331561',
    950: '#000000',
  },
}
SCSS
$custom: #331561;
$custom-light: #70568f;
$custom-dark: #000000;
JSON
{
  "hex": "#331561",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 263.684,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29072,
    "c": 0.12493,
    "h": 295.5
  },
  "luminance": 0.02103
}

Semantic roles & 50–950 ramp

primary
#331561
secondary
#73983A
accent
#E740A5
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331561

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

Preview Lab → · Contrast checker → · Palette generator →

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