#331E6E#331E6E

#331E6E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.6% C 0.130 H 288.7°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#331E6E
RGBrgb(51, 30, 110)
HSLhsl(256, 57%, 27%)
HSVhsv(256, 73%, 43%)
CMYKcmyk(53.6%, 72.7%, 0%, 56.9%)
CIE-LABlab(19.05, 31.72, -42.95)
CIE-LCHlch(19.05, 53.39, 306.44°)
OKLaboklab(31.6% 0.0418 -0.1233)
OKLCHoklch(31.6% 0.13 288.7)
XYZxyz(4.6432, 2.7579, 15.0365)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E6E #596E1E
analogous
#1E316E #331E6E #5B1E6E
triadic
#331E6E #6E331E #1E6E33
tetradic
#331E6E #6E1E31 #596E1E #1E6E5B
square
#331E6E #6E1E31 #596E1E #1E6E5B
split-complementary
#331E6E #6E5B1E #316E1E
monochromatic
#0B0718 #1D113E #331E6E #492B9E #623CCA

Accessibility & contrast

On white

13.53
#331E6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#331E6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E6E
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E6E#FFFFFF#000000##FFFFFF
##331E6E1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#1E3343
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #331e6e;
/* rgb */ color: rgb(51, 30, 110);
/* oklch */ color: oklch(31.6% 0.130 288.7);
Tailwind
colors: {
  custom: {
    50: '#715c98',
    500: '#331e6e',
    950: '#000000',
  },
}
SCSS
$custom: #331e6e;
$custom-light: #715c98;
$custom-dark: #000000;
JSON
{
  "hex": "#331e6e",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 110
  },
  "hsl": {
    "h": 255.75,
    "s": 57.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31598,
    "c": 0.13018,
    "h": 288.7
  },
  "luminance": 0.02758
}

Semantic roles & 50–950 ramp

primary
#331E6E
secondary
#8AA246
accent
#E047B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #331E6E

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

Preview Lab → · Contrast checker → · Palette generator →

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