#331E85#331E85

#331E85 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.160 H 283.2°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#331E85
RGBrgb(51, 30, 133)
HSLhsl(252, 63%, 32%)
HSVhsv(252, 77%, 52%)
CMYKcmyk(61.7%, 77.4%, 0%, 47.8%)
CIE-LABlab(21.30, 38.98, -53.94)
CIE-LCHlch(21.30, 66.55, 305.85°)
OKLaboklab(33.89% 0.0364 -0.1555)
OKLCHoklch(33.89% 0.16 283.2)
XYZxyz(6.0618, 3.3254, 22.5082)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E85 #70851E
analogous
#1E3D85 #331E85 #671E85
triadic
#331E85 #85331E #1E8533
tetradic
#331E85 #851E3D #70851E #1E8567
square
#331E85 #851E3D #70851E #1E8567
split-complementary
#331E85 #85671E #3D851E
monochromatic
#0D0721 #201353 #331E85 #4629B7 #6548D6

Accessibility & contrast

On white

12.61
#331E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331E85
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E85#FFFFFF#000000##FFFFFF
##331E851.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331e85;
/* rgb */ color: rgb(51, 30, 133);
/* oklch */ color: oklch(33.9% 0.160 283.2);
Tailwind
colors: {
  custom: {
    50: '#765daa',
    500: '#331e85',
    950: '#000000',
  },
}
SCSS
$custom: #331e85;
$custom-light: #765daa;
$custom-dark: #000000;
JSON
{
  "hex": "#331e85",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 133
  },
  "hsl": {
    "h": 252.233,
    "s": 63.19,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33885,
    "c": 0.15968,
    "h": 283.2
  },
  "luminance": 0.03326
}

Semantic roles & 50–950 ramp

primary
#331E85
secondary
#A1B847
accent
#E642C5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #331E85

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

Preview Lab → · Contrast checker → · Palette generator →

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