#331C9F#331C9F

#331C9F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.193 H 278.9°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#331C9F
RGBrgb(51, 28, 159)
HSLhsl(251, 70%, 37%)
HSVhsv(251, 82%, 62%)
CMYKcmyk(67.9%, 82.4%, 0%, 37.6%)
CIE-LABlab(23.79, 47.94, -65.94)
CIE-LCHlch(23.79, 81.52, 306.02°)
OKLaboklab(36.46% 0.0298 -0.1904)
OKLCHoklch(36.46% 0.193 278.9)
XYZxyz(8.0365, 4.0368, 33.1498)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C9F #889F1C
analogous
#1C479F #331C9F #751C9F
triadic
#331C9F #9F331C #1C9F33
tetradic
#331C9F #9F1C47 #889F1C #1C9F75
square
#331C9F #9F1C47 #889F1C #1C9F75
split-complementary
#331C9F #9F751C #479F1C
monochromatic
#120A37 #22136B #331C9F #4425D3 #6D54E1

Accessibility & contrast

On white

11.62
#331C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#331C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C9F
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C9F#FFFFFF#000000##FFFFFF
##331C9F1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #331c9f;
/* rgb */ color: rgb(51, 28, 159);
/* oklch */ color: oklch(36.5% 0.193 278.9);
Tailwind
colors: {
  custom: {
    50: '#7b5dbd',
    500: '#331c9f',
    950: '#000000',
  },
}
SCSS
$custom: #331c9f;
$custom-light: #7b5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#331c9f",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 250.534,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36461,
    "c": 0.19274,
    "h": 278.9
  },
  "luminance": 0.04038
}

Semantic roles & 50–950 ramp

primary
#331C9F
secondary
#B0C453
accent
#ED3BCE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #331C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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