#331E9A#331E9A

#331E9A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.185 H 279.4°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#331E9A
RGBrgb(51, 30, 154)
HSLhsl(250, 67%, 36%)
HSVhsv(250, 81%, 60%)
CMYKcmyk(66.9%, 80.5%, 0%, 39.6%)
CIE-LABlab(23.55, 45.48, -63.27)
CIE-LCHlch(23.55, 77.92, 305.71°)
OKLaboklab(36.13% 0.0304 -0.1827)
OKLCHoklch(36.13% 0.185 279.4)
XYZxyz(7.6604, 3.9648, 30.9272)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E9A #859A1E
analogous
#1E479A #331E9A #711E9A
triadic
#331E9A #9A331E #1E9A33
tetradic
#331E9A #9A1E47 #859A1E #1E9A71
square
#331E9A #9A1E47 #859A1E #1E9A71
split-complementary
#331E9A #9A711E #479A1E
monochromatic
#110A34 #221467 #331E9A #4428CD #6C55DE

Accessibility & contrast

On white

11.71
#331E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#331E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E9A
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E9A#FFFFFF#000000##FFFFFF
##331E9A1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #331e9a;
/* rgb */ color: rgb(51, 30, 154);
/* oklch */ color: oklch(36.1% 0.185 279.4);
Tailwind
colors: {
  custom: {
    50: '#7a5eb9',
    500: '#331e9a',
    950: '#000000',
  },
}
SCSS
$custom: #331e9a;
$custom-light: #7a5eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#331e9a",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 154
  },
  "hsl": {
    "h": 250.161,
    "s": 67.391,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36131,
    "c": 0.18521,
    "h": 279.4
  },
  "luminance": 0.03965
}

Semantic roles & 50–950 ramp

primary
#331E9A
secondary
#AEC153
accent
#EA3ECD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #331E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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