#331D91#331D91

#331D91 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.175 H 281.0°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#331D91
RGBrgb(51, 29, 145)
HSLhsl(251, 67%, 34%)
HSVhsv(251, 80%, 57%)
CMYKcmyk(64.8%, 80%, 0%, 43.1%)
CIE-LABlab(22.40, 43.22, -59.63)
CIE-LCHlch(22.40, 73.65, 305.93°)
OKLaboklab(35.03% 0.0336 -0.1721)
OKLCHoklch(35.03% 0.175 281)
XYZxyz(6.9138, 3.6263, 27.1182)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D91 #7B911D
analogous
#1D4191 #331D91 #6D1D91
triadic
#331D91 #91331D #1D9133
tetradic
#331D91 #911D41 #7B911D #1D916D
square
#331D91 #911D41 #7B911D #1D916D
split-complementary
#331D91 #916D1D #41911D
monochromatic
#0F092B #21135E #331D91 #4527C4 #684DDB

Accessibility & contrast

On white

12.17
#331D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#331D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D91
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D91#FFFFFF#000000##FFFFFF
##331D911.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003994
Deuteranopia (green-blind)
#00318F
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #331d91;
/* rgb */ color: rgb(51, 29, 145);
/* oklch */ color: oklch(35.0% 0.175 281.0);
Tailwind
colors: {
  custom: {
    50: '#785db2',
    500: '#331d91',
    950: '#000000',
  },
}
SCSS
$custom: #331d91;
$custom-light: #785db2;
$custom-dark: #000000;
JSON
{
  "hex": "#331d91",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 145
  },
  "hsl": {
    "h": 251.379,
    "s": 66.667,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35031,
    "c": 0.17534,
    "h": 281
  },
  "luminance": 0.03627
}

Semantic roles & 50–950 ramp

primary
#331D91
secondary
#A8BE4C
accent
#EA3EC9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #331D91

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

Preview Lab → · Contrast checker → · Palette generator →

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