#331C85#331C85

#331C85 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.162 H 283.5°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#331C85
RGBrgb(51, 28, 133)
HSLhsl(253, 65%, 32%)
HSVhsv(253, 79%, 52%)
CMYKcmyk(61.7%, 78.9%, 0%, 47.8%)
CIE-LABlab(20.93, 40.04, -54.55)
CIE-LCHlch(20.93, 67.67, 306.28°)
OKLaboklab(33.63% 0.0378 -0.1572)
OKLCHoklch(33.63% 0.162 283.5)
XYZxyz(6.0128, 3.2274, 22.4919)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C85 #6E851C
analogous
#1C3A85 #331C85 #681C85
triadic
#331C85 #85331C #1C8533
tetradic
#331C85 #851C3A #6E851C #1C8568
square
#331C85 #851C3A #6E851C #1C8568
split-complementary
#331C85 #85681C #3A851C
monochromatic
#0C0720 #201152 #331C85 #4627B8 #6444D8

Accessibility & contrast

On white

12.76
#331C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#331C85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C85
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C85#FFFFFF#000000##FFFFFF
##331C851.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #331c85;
/* rgb */ color: rgb(51, 28, 133);
/* oklch */ color: oklch(33.6% 0.162 283.5);
Tailwind
colors: {
  custom: {
    50: '#765caa',
    500: '#331c85',
    950: '#000000',
  },
}
SCSS
$custom: #331c85;
$custom-light: #765caa;
$custom-dark: #000000;
JSON
{
  "hex": "#331c85",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 133
  },
  "hsl": {
    "h": 253.143,
    "s": 65.217,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33625,
    "c": 0.16172,
    "h": 283.5
  },
  "luminance": 0.03228
}

Semantic roles & 50–950 ramp

primary
#331C85
secondary
#9FB845
accent
#E840C3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #331C85

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

Preview Lab → · Contrast checker → · Palette generator →

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