#331C76#331C76

#331C76 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.143 H 287.0°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#331C76
RGBrgb(51, 28, 118)
HSLhsl(255, 62%, 29%)
HSVhsv(255, 76%, 46%)
CMYKcmyk(56.8%, 76.3%, 0%, 53.7%)
CIE-LABlab(19.40, 35.38, -47.54)
CIE-LCHlch(19.40, 59.26, 306.66°)
OKLaboklab(32.08% 0.0419 -0.1367)
OKLCHoklch(32.08% 0.143 287)
XYZxyz(5.0495, 2.8421, 17.4185)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C76 #5F761C
analogous
#1C3276 #331C76 #601C76
triadic
#331C76 #76331C #1C7633
tetradic
#331C76 #761C32 #5F761C #1C7660
square
#331C76 #761C32 #5F761C #1C7660
split-complementary
#331C76 #76601C #32761C
monochromatic
#0B0619 #1E1045 #331C76 #4828A7 #623CD1

Accessibility & contrast

On white

13.39
#331C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331C76
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C76#FFFFFF#000000##FFFFFF
##331C761.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#163447
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #331c76;
/* rgb */ color: rgb(51, 28, 118);
/* oklch */ color: oklch(32.1% 0.143 287.0);
Tailwind
colors: {
  custom: {
    50: '#735b9e',
    500: '#331c76',
    950: '#000000',
  },
}
SCSS
$custom: #331c76;
$custom-light: #735b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#331c76",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 118
  },
  "hsl": {
    "h": 255.333,
    "s": 61.644,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32084,
    "c": 0.143,
    "h": 287
  },
  "luminance": 0.02842
}

Semantic roles & 50–950 ramp

primary
#331C76
secondary
#90AA44
accent
#E543BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #331C76

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

Preview Lab → · Contrast checker → · Palette generator →

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