#331C89#331C89

#331C89 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.167 H 282.7°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#331C89
RGBrgb(51, 28, 137)
HSLhsl(253, 66%, 32%)
HSVhsv(253, 80%, 54%)
CMYKcmyk(62.8%, 79.6%, 0%, 46.3%)
CIE-LABlab(21.36, 41.27, -56.36)
CIE-LCHlch(21.36, 69.86, 306.21°)
OKLaboklab(34.05% 0.0366 -0.1625)
OKLCHoklch(34.05% 0.167 282.7)
XYZxyz(6.2944, 3.3400, 23.9751)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C89 #72891C
analogous
#1C3B89 #331C89 #6A1C89
triadic
#331C89 #89331C #1C8933
tetradic
#331C89 #891C3B #72891C #1C896A
square
#331C89 #891C3B #72891C #1C896A
split-complementary
#331C89 #896A1C #3B891C
monochromatic
#0D0723 #201256 #331C89 #4626BC #6546D9

Accessibility & contrast

On white

12.59
#331C89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#331C89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C89
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C89#FFFFFF#000000##FFFFFF
##331C891.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #331c89;
/* rgb */ color: rgb(51, 28, 137);
/* oklch */ color: oklch(34.0% 0.167 282.7);
Tailwind
colors: {
  custom: {
    50: '#775cad',
    500: '#331c89',
    950: '#000000',
  },
}
SCSS
$custom: #331c89;
$custom-light: #775cad;
$custom-dark: #000000;
JSON
{
  "hex": "#331c89",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 137
  },
  "hsl": {
    "h": 252.661,
    "s": 66.061,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34049,
    "c": 0.16661,
    "h": 282.7
  },
  "luminance": 0.0334
}

Semantic roles & 50–950 ramp

primary
#331C89
secondary
#A2BB46
accent
#E93FC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #331C89

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

Preview Lab → · Contrast checker → · Palette generator →

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