#331E80#331E80

#331E80 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.153 H 284.2°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#331E80
RGBrgb(51, 30, 128)
HSLhsl(253, 62%, 31%)
HSVhsv(253, 77%, 50%)
CMYKcmyk(60.2%, 76.6%, 0%, 49.8%)
CIE-LABlab(20.79, 37.41, -51.63)
CIE-LCHlch(20.79, 63.76, 305.93°)
OKLaboklab(33.37% 0.0377 -0.1487)
OKLCHoklch(33.37% 0.153 284.2)
XYZxyz(5.7246, 3.1905, 20.7321)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E80 #6B801E
analogous
#1E3A80 #331E80 #641E80
triadic
#331E80 #80331E #1E8033
tetradic
#331E80 #801E3A #6B801E #1E8064
square
#331E80 #801E3A #6B801E #1E8064
split-complementary
#331E80 #80641E #3A801E
monochromatic
#0B071D #1F124E #331E80 #472AB2 #6445D3

Accessibility & contrast

On white

12.82
#331E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331E80
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E80#FFFFFF#000000##FFFFFF
##331E801.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#07394D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #331e80;
/* rgb */ color: rgb(51, 30, 128);
/* oklch */ color: oklch(33.4% 0.153 284.2);
Tailwind
colors: {
  custom: {
    50: '#755ca6',
    500: '#331e80',
    950: '#000000',
  },
}
SCSS
$custom: #331e80;
$custom-light: #755ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#331e80",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 128
  },
  "hsl": {
    "h": 252.857,
    "s": 62.025,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3337,
    "c": 0.15341,
    "h": 284.2
  },
  "luminance": 0.03191
}

Semantic roles & 50–950 ramp

primary
#331E80
secondary
#9CB347
accent
#E543C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #331E80

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

Preview Lab → · Contrast checker → · Palette generator →

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