#331C99#331C99

#331C99 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.186 H 279.8°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#331C99
RGBrgb(51, 28, 153)
HSLhsl(251, 69%, 35%)
HSVhsv(251, 82%, 60%)
CMYKcmyk(66.7%, 81.7%, 0%, 40%)
CIE-LABlab(23.11, 46.14, -63.39)
CIE-LCHlch(23.11, 78.40, 306.05°)
OKLaboklab(35.79% 0.0317 -0.183)
OKLCHoklch(35.79% 0.186 279.8)
XYZxyz(7.5284, 3.8336, 30.4740)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C99 #82991C
analogous
#1C4399 #331C99 #711C99
triadic
#331C99 #99331C #1C9933
tetradic
#331C99 #991C43 #82991C #1C9971
square
#331C99 #991C43 #82991C #1C9971
split-complementary
#331C99 #99711C #43991C
monochromatic
#110932 #221365 #331C99 #4425CD #6B50DF

Accessibility & contrast

On white

11.89
#331C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#331C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C99
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C99#FFFFFF#000000##FFFFFF
##331C991.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003297
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #331c99;
/* rgb */ color: rgb(51, 28, 153);
/* oklch */ color: oklch(35.8% 0.186 279.8);
Tailwind
colors: {
  custom: {
    50: '#7a5db8',
    500: '#331c99',
    950: '#000000',
  },
}
SCSS
$custom: #331c99;
$custom-light: #7a5db8;
$custom-dark: #000000;
JSON
{
  "hex": "#331c99",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 153
  },
  "hsl": {
    "h": 251.04,
    "s": 69.061,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35792,
    "c": 0.18573,
    "h": 279.8
  },
  "luminance": 0.03834
}

Semantic roles & 50–950 ramp

primary
#331C99
secondary
#ADC24F
accent
#EC3CCC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #331C99

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

Preview Lab → · Contrast checker → · Palette generator →

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