#331880#331880

#331880 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.160 H 285.3°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#331880
RGBrgb(51, 24, 128)
HSLhsl(256, 68%, 30%)
HSVhsv(256, 81%, 50%)
CMYKcmyk(60.2%, 81.3%, 0%, 49.8%)
CIE-LABlab(19.70, 40.53, -53.42)
CIE-LCHlch(19.70, 67.05, 307.18°)
OKLaboklab(32.61% 0.042 -0.1539)
OKLCHoklch(32.61% 0.16 285.3)
XYZxyz(5.5870, 2.9152, 20.6862)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331880 #658018
analogous
#183180 #331880 #671880
triadic
#331880 #803318 #188033
tetradic
#331880 #801831 #658018 #188067
square
#331880 #801831 #658018 #188067
split-complementary
#331880 #806718 #318018
monochromatic
#0A051A #1E0E4C #331880 #4822B4 #6239DA

Accessibility & contrast

On white

13.26
#331880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#331880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331880
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331880#FFFFFF#000000##FFFFFF
##3318801.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331880;
/* rgb */ color: rgb(51, 24, 128);
/* oklch */ color: oklch(32.6% 0.160 285.3);
Tailwind
colors: {
  custom: {
    50: '#7559a6',
    500: '#331880',
    950: '#000000',
  },
}
SCSS
$custom: #331880;
$custom-light: #7559a6;
$custom-dark: #000000;
JSON
{
  "hex": "#331880",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 255.577,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32607,
    "c": 0.15955,
    "h": 285.3
  },
  "luminance": 0.02916
}

Semantic roles & 50–950 ramp

primary
#331880
secondary
#96B440
accent
#EB3DBE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #331880

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

Preview Lab → · Contrast checker → · Palette generator →

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