#331C93#331C93

#331C93 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.179 H 280.8°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#331C93
RGBrgb(51, 28, 147)
HSLhsl(252, 68%, 34%)
HSVhsv(252, 81%, 58%)
CMYKcmyk(65.3%, 81%, 0%, 42.4%)
CIE-LABlab(22.45, 44.32, -60.79)
CIE-LCHlch(22.45, 75.23, 306.10°)
OKLaboklab(35.13% 0.0336 -0.1754)
OKLCHoklch(35.13% 0.179 280.8)
XYZxyz(7.0453, 3.6404, 27.9295)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C93 #7C931C
analogous
#1C4093 #331C93 #6F1C93
triadic
#331C93 #93331C #1C9333
tetradic
#331C93 #931C40 #7C931C #1C936F
square
#331C93 #931C40 #7C931C #1C936F
split-complementary
#331C93 #936F1C #40931C
monochromatic
#0F082C #211260 #331C93 #4526C6 #684CDD

Accessibility & contrast

On white

12.15
#331C93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#331C93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C93
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C93#FFFFFF#000000##FFFFFF
##331C931.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#003191
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #331c93;
/* rgb */ color: rgb(51, 28, 147);
/* oklch */ color: oklch(35.1% 0.179 280.8);
Tailwind
colors: {
  custom: {
    50: '#795cb4',
    500: '#331c93',
    950: '#000000',
  },
}
SCSS
$custom: #331c93;
$custom-light: #795cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#331c93",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 147
  },
  "hsl": {
    "h": 251.597,
    "s": 68,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35131,
    "c": 0.17863,
    "h": 280.8
  },
  "luminance": 0.03641
}

Semantic roles & 50–950 ramp

primary
#331C93
secondary
#A9BF4C
accent
#EB3DC9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #331C93

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

Preview Lab → · Contrast checker → · Palette generator →

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