#331C86#331C86

#331C86 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.163 H 283.3°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#331C86
RGBrgb(51, 28, 134)
HSLhsl(253, 65%, 32%)
HSVhsv(253, 79%, 53%)
CMYKcmyk(61.9%, 79.1%, 0%, 47.5%)
CIE-LABlab(21.04, 40.35, -55.01)
CIE-LCHlch(21.04, 68.22, 306.26°)
OKLaboklab(33.73% 0.0375 -0.1586)
OKLCHoklch(33.73% 0.163 283.3)
XYZxyz(6.0822, 3.2551, 22.8574)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C86 #6F861C
analogous
#1C3A86 #331C86 #681C86
triadic
#331C86 #86331C #1C8633
tetradic
#331C86 #861C3A #6F861C #1C8668
square
#331C86 #861C3A #6F861C #1C8668
split-complementary
#331C86 #86681C #3A861C
monochromatic
#0C0721 #201153 #331C86 #4627B9 #6444D8

Accessibility & contrast

On white

12.72
#331C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#331C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##331C86#FFFFFF#000000##FFFFFF
##331C861.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)
#003689
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #331c86;
/* rgb */ color: rgb(51, 28, 134);
/* oklch */ color: oklch(33.7% 0.163 283.3);
Tailwind
colors: {
  custom: {
    50: '#765caa',
    500: '#331c86',
    950: '#000000',
  },
}
SCSS
$custom: #331c86;
$custom-light: #765caa;
$custom-dark: #000000;
JSON
{
  "hex": "#331c86",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 134
  },
  "hsl": {
    "h": 253.019,
    "s": 65.432,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33731,
    "c": 0.16295,
    "h": 283.3
  },
  "luminance": 0.03256
}

Semantic roles & 50–950 ramp

primary
#331C86
secondary
#A0B945
accent
#E83FC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #331C86

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

Preview Lab → · Contrast checker → · Palette generator →

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