#331C79#331C79

#331C79 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.147 H 286.3°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#331C79
RGBrgb(51, 28, 121)
HSLhsl(255, 62%, 29%)
HSVhsv(255, 77%, 47%)
CMYKcmyk(57.9%, 76.9%, 0%, 52.5%)
CIE-LABlab(19.70, 36.31, -48.97)
CIE-LCHlch(19.70, 60.96, 306.56°)
OKLaboklab(32.39% 0.0411 -0.1409)
OKLCHoklch(32.39% 0.147 286.3)
XYZxyz(5.2306, 2.9145, 18.3724)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C79 #62791C
analogous
#1C3479 #331C79 #621C79
triadic
#331C79 #79331C #1C7933
tetradic
#331C79 #791C34 #62791C #1C7962
square
#331C79 #791C34 #62791C #1C7962
split-complementary
#331C79 #79621C #34791C
monochromatic
#0A0619 #1E1047 #331C79 #4828AB #623DD2

Accessibility & contrast

On white

13.27
#331C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#331C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C79
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C79#FFFFFF#000000##FFFFFF
##331C791.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#133649
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #331c79;
/* rgb */ color: rgb(51, 28, 121);
/* oklch */ color: oklch(32.4% 0.147 286.3);
Tailwind
colors: {
  custom: {
    50: '#735ba1',
    500: '#331c79',
    950: '#000000',
  },
}
SCSS
$custom: #331c79;
$custom-light: #735ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#331c79",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 254.839,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32385,
    "c": 0.1468,
    "h": 286.3
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#331C79
secondary
#93AD44
accent
#E542BD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #331C79

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

Preview Lab → · Contrast checker → · Palette generator →

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