#331573#331573

#331573 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.147 H 289.3°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#331573
RGBrgb(51, 21, 115)
HSLhsl(259, 69%, 27%)
HSVhsv(259, 82%, 45%)
CMYKcmyk(55.7%, 81.7%, 0%, 54.9%)
CIE-LABlab(17.82, 38.11, -48.20)
CIE-LCHlch(17.82, 61.45, 308.33°)
OKLaboklab(30.88% 0.0484 -0.1386)
OKLCHoklch(30.88% 0.147 289.3)
XYZxyz(4.7270, 2.4777, 16.4455)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331573 #557315
analogous
#152673 #331573 #621573
triadic
#331573 #733315 #157333
tetradic
#331573 #731526 #557315 #157362
square
#331573 #731526 #557315 #157362
split-complementary
#331573 #736215 #267315
monochromatic
#0B051A #1C0C3F #331573 #4A1EA7 #622AD8

Accessibility & contrast

On white

14.04
#331573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#331573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331573
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331573#FFFFFF#000000##FFFFFF
##3315731.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#1A3044
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331573;
/* rgb */ color: rgb(51, 21, 115);
/* oklch */ color: oklch(30.9% 0.147 289.3);
Tailwind
colors: {
  custom: {
    50: '#73579c',
    500: '#331573',
    950: '#000000',
  },
}
SCSS
$custom: #331573;
$custom-light: #73579c;
$custom-dark: #000000;
JSON
{
  "hex": "#331573",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 259.149,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30881,
    "c": 0.14685,
    "h": 289.3
  },
  "luminance": 0.02478
}

Semantic roles & 50–950 ramp

primary
#331573
secondary
#86A93B
accent
#EC3CB4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331573

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

Preview Lab → · Contrast checker → · Palette generator →

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