#331590#331590

#331590 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.181 H 282.2°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#331590
RGBrgb(51, 21, 144)
HSLhsl(255, 75%, 32%)
HSVhsv(255, 85%, 56%)
CMYKcmyk(64.6%, 85.4%, 0%, 43.5%)
CIE-LABlab(21.03, 46.58, -61.27)
CIE-LCHlch(21.03, 76.96, 307.24°)
OKLaboklab(34.06% 0.0382 -0.1767)
OKLCHoklch(34.06% 0.181 282.2)
XYZxyz(6.6659, 3.2533, 26.6568)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331590 #729015
analogous
#153590 #331590 #701590
triadic
#331590 #903315 #159033
tetradic
#331590 #901535 #729015 #159070
square
#331590 #901535 #729015 #159070
split-complementary
#331590 #907015 #359015
monochromatic
#0D0525 #200D5B #331590 #461DC5 #653DE3

Accessibility & contrast

On white

12.72
#331590 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#331590 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331590
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331590#FFFFFF#000000##FFFFFF
##3315901.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002E8E
Tritanopia (blue-blind)
#003C55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #331590;
/* rgb */ color: rgb(51, 21, 144);
/* oklch */ color: oklch(34.1% 0.181 282.2);
Tailwind
colors: {
  custom: {
    50: '#7959b2',
    500: '#331590',
    950: '#000000',
  },
}
SCSS
$custom: #331590;
$custom-light: #7959b2;
$custom-dark: #000000;
JSON
{
  "hex": "#331590",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 144
  },
  "hsl": {
    "h": 254.634,
    "s": 74.545,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34055,
    "c": 0.18082,
    "h": 282.2
  },
  "luminance": 0.03254
}

Semantic roles & 50–950 ramp

primary
#331590
secondary
#A2C23E
accent
#F137C4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #331590

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

Preview Lab → · Contrast checker → · Palette generator →

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