#331571#331571

#331571 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.144 H 289.9°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#331571
RGBrgb(51, 21, 113)
HSLhsl(260, 69%, 26%)
HSVhsv(260, 81%, 44%)
CMYKcmyk(54.9%, 81.4%, 0%, 55.7%)
CIE-LABlab(17.61, 37.52, -47.25)
CIE-LCHlch(17.61, 60.34, 308.45°)
OKLaboklab(30.67% 0.0491 -0.1358)
OKLCHoklch(30.67% 0.144 289.9)
XYZxyz(4.6132, 2.4322, 15.8460)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331571 #537115
analogous
#152571 #331571 #611571
triadic
#331571 #713315 #157133
tetradic
#331571 #711525 #537115 #157161
square
#331571 #711525 #537115 #157161
split-complementary
#331571 #716115 #257115
monochromatic
#0C051A #1C0B3D #331571 #4A1FA5 #6229D7

Accessibility & contrast

On white

14.13
#331571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#331571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331571
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331571#FFFFFF#000000##FFFFFF
##3315711.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#1C2F43
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331571;
/* rgb */ color: rgb(51, 21, 113);
/* oklch */ color: oklch(30.7% 0.144 289.9);
Tailwind
colors: {
  custom: {
    50: '#73579b',
    500: '#331571',
    950: '#000000',
  },
}
SCSS
$custom: #331571;
$custom-light: #73579b;
$custom-dark: #000000;
JSON
{
  "hex": "#331571",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 259.565,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30673,
    "c": 0.14445,
    "h": 289.9
  },
  "luminance": 0.02432
}

Semantic roles & 50–950 ramp

primary
#331571
secondary
#84A73B
accent
#EB3CB2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331571

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

Preview Lab → · Contrast checker → · Palette generator →

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