#331C77#331C77

#331C77 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.144 H 286.8°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#331C77
RGBrgb(51, 28, 119)
HSLhsl(255, 62%, 29%)
HSVhsv(255, 76%, 47%)
CMYKcmyk(57.1%, 76.5%, 0%, 53.3%)
CIE-LABlab(19.50, 35.69, -48.02)
CIE-LCHlch(19.50, 59.83, 306.62°)
OKLaboklab(32.18% 0.0416 -0.1381)
OKLCHoklch(32.18% 0.144 286.8)
XYZxyz(5.1093, 2.8659, 17.7331)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C77 #60771C
analogous
#1C3377 #331C77 #611C77
triadic
#331C77 #77331C #1C7733
tetradic
#331C77 #771C33 #60771C #1C7761
square
#331C77 #771C33 #60771C #1C7761
split-complementary
#331C77 #77611C #33771C
monochromatic
#0B0619 #1E1045 #331C77 #4828A9 #623CD1

Accessibility & contrast

On white

13.35
#331C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#331C77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C77
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C77#FFFFFF#000000##FFFFFF
##331C771.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#153548
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #331c77;
/* rgb */ color: rgb(51, 28, 119);
/* oklch */ color: oklch(32.2% 0.144 286.8);
Tailwind
colors: {
  custom: {
    50: '#735b9f',
    500: '#331c77',
    950: '#000000',
  },
}
SCSS
$custom: #331c77;
$custom-light: #735b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#331c77",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 119
  },
  "hsl": {
    "h": 255.165,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32184,
    "c": 0.14427,
    "h": 286.8
  },
  "luminance": 0.02866
}

Semantic roles & 50–950 ramp

primary
#331C77
secondary
#91AB44
accent
#E543BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #331C77

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

Preview Lab → · Contrast checker → · Palette generator →

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