#331C78#331C78

#331C78 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.146 H 286.5°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#331C78
RGBrgb(51, 28, 120)
HSLhsl(255, 62%, 29%)
HSVhsv(255, 77%, 47%)
CMYKcmyk(57.5%, 76.7%, 0%, 52.9%)
CIE-LABlab(19.60, 36.00, -48.49)
CIE-LCHlch(19.60, 60.40, 306.59°)
OKLaboklab(32.28% 0.0413 -0.1395)
OKLCHoklch(32.28% 0.146 286.5)
XYZxyz(5.1696, 2.8901, 18.0511)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C78 #61781C
analogous
#1C3378 #331C78 #611C78
triadic
#331C78 #78331C #1C7833
tetradic
#331C78 #781C33 #61781C #1C7861
square
#331C78 #781C33 #61781C #1C7861
split-complementary
#331C78 #78611C #33781C
monochromatic
#0B0619 #1E1046 #331C78 #4828AA #623DD2

Accessibility & contrast

On white

13.31
#331C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331C78
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C78#FFFFFF#000000##FFFFFF
##331C781.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#143548
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #331c78;
/* rgb */ color: rgb(51, 28, 120);
/* oklch */ color: oklch(32.3% 0.146 286.5);
Tailwind
colors: {
  custom: {
    50: '#735ba0',
    500: '#331c78',
    950: '#000000',
  },
}
SCSS
$custom: #331c78;
$custom-light: #735ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#331c78",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 255,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32284,
    "c": 0.14553,
    "h": 286.5
  },
  "luminance": 0.0289
}

Semantic roles & 50–950 ramp

primary
#331C78
secondary
#92AC44
accent
#E543BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #331C78

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

Preview Lab → · Contrast checker → · Palette generator →

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