#331577#331577

#331577 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.152 H 288.1°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#331577
RGBrgb(51, 21, 119)
HSLhsl(258, 70%, 27%)
HSVhsv(258, 82%, 47%)
CMYKcmyk(57.1%, 82.4%, 0%, 53.3%)
CIE-LABlab(18.24, 39.29, -50.09)
CIE-LCHlch(18.24, 63.66, 308.11°)
OKLaboklab(31.3% 0.0471 -0.1441)
OKLCHoklch(31.3% 0.152 288.1)
XYZxyz(4.9622, 2.5718, 17.6841)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331577 #597715
analogous
#152877 #331577 #641577
triadic
#331577 #773315 #157733
tetradic
#331577 #771528 #597715 #157764
square
#331577 #771528 #597715 #157764
split-complementary
#331577 #776415 #287715
monochromatic
#0B051A #1D0C43 #331577 #491EAB #622DDA

Accessibility & contrast

On white

13.87
#331577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331577
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331577#FFFFFF#000000##FFFFFF
##3315771.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002A75
Tritanopia (blue-blind)
#163246
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331577;
/* rgb */ color: rgb(51, 21, 119);
/* oklch */ color: oklch(31.3% 0.152 288.1);
Tailwind
colors: {
  custom: {
    50: '#74579f',
    500: '#331577',
    950: '#000000',
  },
}
SCSS
$custom: #331577;
$custom-light: #74579f;
$custom-dark: #000000;
JSON
{
  "hex": "#331577",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 258.367,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31302,
    "c": 0.15163,
    "h": 288.1
  },
  "luminance": 0.02572
}

Semantic roles & 50–950 ramp

primary
#331577
secondary
#8AAD3B
accent
#ED3BB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #331577

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

Preview Lab → · Contrast checker → · Palette generator →

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