#331C97#331C97

#331C97 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.183 H 280.2°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#331C97
RGBrgb(51, 28, 151)
HSLhsl(251, 69%, 35%)
HSVhsv(251, 81%, 59%)
CMYKcmyk(66.2%, 81.5%, 0%, 40.8%)
CIE-LABlab(22.89, 45.53, -62.53)
CIE-LCHlch(22.89, 77.35, 306.06°)
OKLaboklab(35.57% 0.0323 -0.1805)
OKLCHoklch(35.57% 0.183 280.2)
XYZxyz(7.3646, 3.7681, 29.6114)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C97 #80971C
analogous
#1C4297 #331C97 #711C97
triadic
#331C97 #97331C #1C9733
tetradic
#331C97 #971C42 #80971C #1C9771
square
#331C97 #971C42 #80971C #1C9771
split-complementary
#331C97 #97711C #42971C
monochromatic
#100930 #221263 #331C97 #4426CB #6A4FDE

Accessibility & contrast

On white

11.97
#331C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#331C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C97
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C97#FFFFFF#000000##FFFFFF
##331C971.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #331c97;
/* rgb */ color: rgb(51, 28, 151);
/* oklch */ color: oklch(35.6% 0.183 280.2);
Tailwind
colors: {
  custom: {
    50: '#795db7',
    500: '#331c97',
    950: '#000000',
  },
}
SCSS
$custom: #331c97;
$custom-light: #795db7;
$custom-dark: #000000;
JSON
{
  "hex": "#331c97",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 251.22,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3557,
    "c": 0.18337,
    "h": 280.2
  },
  "luminance": 0.03769
}

Semantic roles & 50–950 ramp

primary
#331C97
secondary
#ABC14E
accent
#EC3CCB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #331C97

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

Preview Lab → · Contrast checker → · Palette generator →

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