#331E76#331E76

#331E76 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.141 H 286.6°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#331E76
RGBrgb(51, 30, 118)
HSLhsl(254, 59%, 29%)
HSVhsv(254, 75%, 46%)
CMYKcmyk(56.8%, 74.6%, 0%, 53.7%)
CIE-LABlab(19.80, 34.25, -46.88)
CIE-LCHlch(19.80, 58.06, 306.15°)
OKLaboklab(32.37% 0.0401 -0.1348)
OKLCHoklch(32.37% 0.141 286.6)
XYZxyz(5.0986, 2.9401, 17.4349)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E76 #61761E
analogous
#1E3576 #331E76 #5F1E76
triadic
#331E76 #76331E #1E7633
tetradic
#331E76 #761E35 #61761E #1E765F
square
#331E76 #761E35 #61761E #1E765F
split-complementary
#331E76 #765F1E #35761E
monochromatic
#0B0618 #1E1245 #331E76 #482AA7 #6240CE

Accessibility & contrast

On white

13.22
#331E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#331E76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E76
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E76#FFFFFF#000000##FFFFFF
##331E761.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#163548
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #331e76;
/* rgb */ color: rgb(51, 30, 118);
/* oklch */ color: oklch(32.4% 0.141 286.6);
Tailwind
colors: {
  custom: {
    50: '#735c9e',
    500: '#331e76',
    950: '#000000',
  },
}
SCSS
$custom: #331e76;
$custom-light: #735c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#331e76",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 118
  },
  "hsl": {
    "h": 254.318,
    "s": 59.459,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32369,
    "c": 0.14064,
    "h": 286.6
  },
  "luminance": 0.0294
}

Semantic roles & 50–950 ramp

primary
#331E76
secondary
#92AA46
accent
#E345BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #331E76

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

Preview Lab → · Contrast checker → · Palette generator →

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