#331C9E#331C9E

#331C9E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.192 H 279.1°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#331C9E
RGBrgb(51, 28, 158)
HSLhsl(251, 70%, 36%)
HSVhsv(251, 82%, 62%)
CMYKcmyk(67.7%, 82.3%, 0%, 38%)
CIE-LABlab(23.68, 47.64, -65.52)
CIE-LCHlch(23.68, 81.00, 306.02°)
OKLaboklab(36.35% 0.0302 -0.1892)
OKLCHoklch(36.35% 0.192 279.1)
XYZxyz(7.9501, 4.0023, 32.6947)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C9E #879E1C
analogous
#1C469E #331C9E #741C9E
triadic
#331C9E #9E331C #1C9E33
tetradic
#331C9E #9E1C46 #879E1C #1C9E74
square
#331C9E #9E1C46 #879E1C #1C9E74
split-complementary
#331C9E #9E741C #469E1C
monochromatic
#110A36 #22136A #331C9E #4425D2 #6D54E1

Accessibility & contrast

On white

11.66
#331C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#331C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C9E
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C9E#FFFFFF#000000##FFFFFF
##331C9E1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #331c9e;
/* rgb */ color: rgb(51, 28, 158);
/* oklch */ color: oklch(36.3% 0.192 279.1);
Tailwind
colors: {
  custom: {
    50: '#7b5dbc',
    500: '#331c9e',
    950: '#000000',
  },
}
SCSS
$custom: #331c9e;
$custom-light: #7b5dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#331c9e",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 158
  },
  "hsl": {
    "h": 250.615,
    "s": 69.892,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36349,
    "c": 0.19159,
    "h": 279.1
  },
  "luminance": 0.04003
}

Semantic roles & 50–950 ramp

primary
#331C9E
secondary
#B0C452
accent
#ED3BCD
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #331C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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