#331980#331980

#331980 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.159 H 285.1°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#331980
RGBrgb(51, 25, 128)
HSLhsl(255, 67%, 30%)
HSVhsv(255, 80%, 50%)
CMYKcmyk(60.2%, 80.5%, 0%, 49.8%)
CIE-LABlab(19.87, 40.03, -53.14)
CIE-LCHlch(19.87, 66.53, 306.99°)
OKLaboklab(32.73% 0.0414 -0.1531)
OKLCHoklch(32.73% 0.159 285.1)
XYZxyz(5.6080, 2.9572, 20.6932)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331980 #668019
analogous
#193280 #331980 #671980
triadic
#331980 #803319 #198033
tetradic
#331980 #801932 #668019 #198067
square
#331980 #801932 #668019 #198067
split-complementary
#331980 #806719 #328019
monochromatic
#0A051A #1F0F4D #331980 #4723B3 #633BD9

Accessibility & contrast

On white

13.19
#331980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#331980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331980
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331980#FFFFFF#000000##FFFFFF
##3319801.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#07374C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #331980;
/* rgb */ color: rgb(51, 25, 128);
/* oklch */ color: oklch(32.7% 0.159 285.1);
Tailwind
colors: {
  custom: {
    50: '#755aa6',
    500: '#331980',
    950: '#000000',
  },
}
SCSS
$custom: #331980;
$custom-light: #755aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#331980",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 255.146,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.32725,
    "c": 0.15859,
    "h": 285.1
  },
  "luminance": 0.02958
}

Semantic roles & 50–950 ramp

primary
#331980
secondary
#97B441
accent
#EA3EBF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #331980

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

Preview Lab → · Contrast checker → · Palette generator →

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