#331C7A#331C7A

#331C7A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.148 H 286.0°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#331C7A
RGBrgb(51, 28, 122)
HSLhsl(255, 63%, 29%)
HSVhsv(255, 77%, 48%)
CMYKcmyk(58.2%, 77%, 0%, 52.2%)
CIE-LABlab(19.80, 36.62, -49.44)
CIE-LCHlch(19.80, 61.53, 306.53°)
OKLaboklab(32.49% 0.0408 -0.1423)
OKLCHoklch(32.49% 0.148 286)
XYZxyz(5.2923, 2.9392, 18.6970)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C7A #637A1C
analogous
#1C347A #331C7A #621C7A
triadic
#331C7A #7A331C #1C7A33
tetradic
#331C7A #7A1C34 #637A1C #1C7A62
square
#331C7A #7A1C34 #637A1C #1C7A62
split-complementary
#331C7A #7A621C #347A1C
monochromatic
#0A0619 #1E1148 #331C7A #4827AC #623ED3

Accessibility & contrast

On white

13.23
#331C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#331C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C7A
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C7A#FFFFFF#000000##FFFFFF
##331C7A1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#123649
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #331c7a;
/* rgb */ color: rgb(51, 28, 122);
/* oklch */ color: oklch(32.5% 0.148 286.0);
Tailwind
colors: {
  custom: {
    50: '#745ba1',
    500: '#331c7a',
    950: '#000000',
  },
}
SCSS
$custom: #331c7a;
$custom-light: #745ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#331c7a",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 254.681,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32487,
    "c": 0.14806,
    "h": 286
  },
  "luminance": 0.02939
}

Semantic roles & 50–950 ramp

primary
#331C7A
secondary
#94AE44
accent
#E642BE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #331C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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