#331D85#331D85

#331D85 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.161 H 283.3°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#331D85
RGBrgb(51, 29, 133)
HSLhsl(253, 64%, 32%)
HSVhsv(253, 78%, 52%)
CMYKcmyk(61.7%, 78.2%, 0%, 47.8%)
CIE-LABlab(21.12, 39.51, -54.25)
CIE-LCHlch(21.12, 67.11, 306.07°)
OKLaboklab(33.75% 0.0371 -0.1564)
OKLCHoklch(33.75% 0.161 283.3)
XYZxyz(6.0369, 3.2756, 22.4999)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D85 #6F851D
analogous
#1D3B85 #331D85 #671D85
triadic
#331D85 #85331D #1D8533
tetradic
#331D85 #851D3B #6F851D #1D8567
square
#331D85 #851D3B #6F851D #1D8567
split-complementary
#331D85 #85671D #3B851D
monochromatic
#0C0721 #201253 #331D85 #4628B7 #6446D7

Accessibility & contrast

On white

12.69
#331D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#331D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D85
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D85#FFFFFF#000000##FFFFFF
##331D851.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #331d85;
/* rgb */ color: rgb(51, 29, 133);
/* oklch */ color: oklch(33.8% 0.161 283.3);
Tailwind
colors: {
  custom: {
    50: '#765caa',
    500: '#331d85',
    950: '#000000',
  },
}
SCSS
$custom: #331d85;
$custom-light: #765caa;
$custom-dark: #000000;
JSON
{
  "hex": "#331d85",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 133
  },
  "hsl": {
    "h": 252.692,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33753,
    "c": 0.16071,
    "h": 283.3
  },
  "luminance": 0.03276
}

Semantic roles & 50–950 ramp

primary
#331D85
secondary
#A0B846
accent
#E741C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #331D85

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

Preview Lab → · Contrast checker → · Palette generator →

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