#331E6A#331E6A

#331E6A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.2% C 0.125 H 289.9°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#331E6A
RGBrgb(51, 30, 106)
HSLhsl(257, 56%, 27%)
HSVhsv(257, 72%, 42%)
CMYKcmyk(51.9%, 71.7%, 0%, 58.4%)
CIE-LABlab(18.68, 30.45, -40.94)
CIE-LCHlch(18.68, 51.02, 306.64°)
OKLaboklab(31.22% 0.0425 -0.1174)
OKLCHoklch(31.22% 0.125 289.9)
XYZxyz(4.4303, 2.6728, 13.9153)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E6A #556A1E
analogous
#1E2F6A #331E6A #591E6A
triadic
#331E6A #6A331E #1E6A33
tetradic
#331E6A #6A1E2F #556A1E #1E6A59
square
#331E6A #6A1E2F #556A1E #1E6A59
split-complementary
#331E6A #6A591E #2F6A1E
monochromatic
#0B0718 #1C113A #331E6A #4A2C9A #623BC7

Accessibility & contrast

On white

13.68
#331E6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#331E6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E6A
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E6A#FFFFFF#000000##FFFFFF
##331E6A1.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#002C68
Tritanopia (blue-blind)
#203141
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331e6a;
/* rgb */ color: rgb(51, 30, 106);
/* oklch */ color: oklch(31.2% 0.125 289.9);
Tailwind
colors: {
  custom: {
    50: '#715b95',
    500: '#331e6a',
    950: '#000000',
  },
}
SCSS
$custom: #331e6a;
$custom-light: #715b95;
$custom-dark: #000000;
JSON
{
  "hex": "#331e6a",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 106
  },
  "hsl": {
    "h": 256.579,
    "s": 55.882,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31224,
    "c": 0.12486,
    "h": 289.9
  },
  "luminance": 0.02673
}

Semantic roles & 50–950 ramp

primary
#331E6A
secondary
#869E45
accent
#DF49B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331E6A

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

Preview Lab → · Contrast checker → · Palette generator →

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