#331C95#331C95

#331C95 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.181 H 280.5°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#331C95
RGBrgb(51, 28, 149)
HSLhsl(251, 68%, 35%)
HSVhsv(251, 81%, 58%)
CMYKcmyk(65.8%, 81.2%, 0%, 41.6%)
CIE-LABlab(22.67, 44.93, -61.66)
CIE-LCHlch(22.67, 76.29, 306.08°)
OKLaboklab(35.35% 0.033 -0.178)
OKLCHoklch(35.35% 0.181 280.5)
XYZxyz(7.2036, 3.7037, 28.7632)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C95 #7E951C
analogous
#1C4195 #331C95 #701C95
triadic
#331C95 #95331C #1C9533
tetradic
#331C95 #951C41 #7E951C #1C9570
square
#331C95 #951C41 #7E951C #1C9570
split-complementary
#331C95 #95701C #41951C
monochromatic
#10092E #211261 #331C95 #4526C9 #694EDE

Accessibility & contrast

On white

12.06
#331C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#331C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C95
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C95#FFFFFF#000000##FFFFFF
##331C951.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #331c95;
/* rgb */ color: rgb(51, 28, 149);
/* oklch */ color: oklch(35.4% 0.181 280.5);
Tailwind
colors: {
  custom: {
    50: '#795db5',
    500: '#331c95',
    950: '#000000',
  },
}
SCSS
$custom: #331c95;
$custom-light: #795db5;
$custom-dark: #000000;
JSON
{
  "hex": "#331c95",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 149
  },
  "hsl": {
    "h": 251.405,
    "s": 68.362,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3535,
    "c": 0.181,
    "h": 280.5
  },
  "luminance": 0.03704
}

Semantic roles & 50–950 ramp

primary
#331C95
secondary
#AAC04D
accent
#EB3DCA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #331C95

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

Preview Lab → · Contrast checker → · Palette generator →

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