#331D83#331D83

#331D83 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.158 H 283.8°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#331D83
RGBrgb(51, 29, 131)
HSLhsl(253, 64%, 31%)
HSVhsv(253, 78%, 51%)
CMYKcmyk(61.1%, 77.9%, 0%, 48.6%)
CIE-LABlab(20.91, 38.89, -53.33)
CIE-LCHlch(20.91, 66.01, 306.10°)
OKLaboklab(33.55% 0.0376 -0.1537)
OKLCHoklch(33.55% 0.158 283.8)
XYZxyz(5.9001, 3.2208, 21.7791)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D83 #6D831D
analogous
#1D3A83 #331D83 #661D83
triadic
#331D83 #83331D #1D8333
tetradic
#331D83 #831D3A #6D831D #1D8366
square
#331D83 #831D3A #6D831D #1D8366
split-complementary
#331D83 #83661D #3A831D
monochromatic
#0C071F #1F1251 #331D83 #4728B5 #6445D6

Accessibility & contrast

On white

12.77
#331D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#331D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D83
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D83#FFFFFF#000000##FFFFFF
##331D831.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #331d83;
/* rgb */ color: rgb(51, 29, 131);
/* oklch */ color: oklch(33.5% 0.158 283.8);
Tailwind
colors: {
  custom: {
    50: '#755ca8',
    500: '#331d83',
    950: '#000000',
  },
}
SCSS
$custom: #331d83;
$custom-light: #755ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#331d83",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 131
  },
  "hsl": {
    "h": 252.941,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33545,
    "c": 0.15824,
    "h": 283.8
  },
  "luminance": 0.03221
}

Semantic roles & 50–950 ramp

primary
#331D83
secondary
#9EB646
accent
#E741C3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #331D83

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

Preview Lab → · Contrast checker → · Palette generator →

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