#331576#331576

#331576 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.150 H 288.4°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#331576
RGBrgb(51, 21, 118)
HSLhsl(259, 70%, 27%)
HSVhsv(259, 82%, 46%)
CMYKcmyk(56.8%, 82.2%, 0%, 53.7%)
CIE-LABlab(18.13, 38.99, -49.62)
CIE-LCHlch(18.13, 63.11, 308.16°)
OKLaboklab(31.2% 0.0474 -0.1428)
OKLCHoklch(31.2% 0.15 288.4)
XYZxyz(4.9025, 2.5479, 17.3695)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331576 #587615
analogous
#152776 #331576 #641576
triadic
#331576 #763315 #157633
tetradic
#331576 #761527 #587615 #157664
square
#331576 #761527 #587615 #157664
split-complementary
#331576 #766415 #277615
monochromatic
#0B051A #1D0C42 #331576 #491EAA #622CD9

Accessibility & contrast

On white

13.91
#331576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#331576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331576
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331576#FFFFFF#000000##FFFFFF
##3315761.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002A74
Tritanopia (blue-blind)
#173146
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331576;
/* rgb */ color: rgb(51, 21, 118);
/* oklch */ color: oklch(31.2% 0.150 288.4);
Tailwind
colors: {
  custom: {
    50: '#73579e',
    500: '#331576',
    950: '#000000',
  },
}
SCSS
$custom: #331576;
$custom-light: #73579e;
$custom-dark: #000000;
JSON
{
  "hex": "#331576",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 258.557,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31196,
    "c": 0.15044,
    "h": 288.4
  },
  "luminance": 0.02548
}

Semantic roles & 50–950 ramp

primary
#331576
secondary
#89AC3B
accent
#ED3BB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #331576

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

Preview Lab → · Contrast checker → · Palette generator →

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