#331C83#331C83

#331C83 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.159 H 283.9°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#331C83
RGBrgb(51, 28, 131)
HSLhsl(253, 65%, 31%)
HSVhsv(253, 79%, 51%)
CMYKcmyk(61.1%, 78.6%, 0%, 48.6%)
CIE-LABlab(20.72, 39.42, -53.64)
CIE-LCHlch(20.72, 66.56, 306.31°)
OKLaboklab(33.42% 0.0383 -0.1546)
OKLCHoklch(33.42% 0.159 283.9)
XYZxyz(5.8760, 3.1726, 21.7711)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C83 #6C831C
analogous
#1C3883 #331C83 #661C83
triadic
#331C83 #83331C #1C8333
tetradic
#331C83 #831C38 #6C831C #1C8366
square
#331C83 #831C38 #6C831C #1C8366
split-complementary
#331C83 #83661C #38831C
monochromatic
#0C061E #1F1151 #331C83 #4727B5 #6443D7

Accessibility & contrast

On white

12.85
#331C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#331C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C83
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C83#FFFFFF#000000##FFFFFF
##331C831.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002E81
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #331c83;
/* rgb */ color: rgb(51, 28, 131);
/* oklch */ color: oklch(33.4% 0.159 283.9);
Tailwind
colors: {
  custom: {
    50: '#755ba8',
    500: '#331c83',
    950: '#000000',
  },
}
SCSS
$custom: #331c83;
$custom-light: #755ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#331c83",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 131
  },
  "hsl": {
    "h": 253.398,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33415,
    "c": 0.15926,
    "h": 283.9
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#331C83
secondary
#9DB645
accent
#E840C2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #331C83

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

Preview Lab → · Contrast checker → · Palette generator →

#331C83 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva