#331E4E#331E4E

#331E4E is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.9% C 0.086 H 301.4°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#331E4E
RGBrgb(51, 30, 78)
HSLhsl(266, 44%, 21%)
HSVhsv(266, 62%, 31%)
CMYKcmyk(34.6%, 61.5%, 0%, 69.4%)
CIE-LABlab(16.42, 21.80, -25.94)
CIE-LCHlch(16.42, 33.88, 310.04°)
OKLaboklab(28.86% 0.0448 -0.0733)
OKLCHoklch(28.86% 0.086 301.4)
XYZxyz(3.2043, 2.1824, 7.4587)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E4E #394E1E
analogous
#1E214E #331E4E #4B1E4E
triadic
#331E4E #4E331E #1E4E33
tetradic
#331E4E #4E1E21 #394E1E #1E4E4B
square
#331E4E #4E1E21 #394E1E #1E4E4B
split-complementary
#331E4E #4E4B1E #214E1E
monochromatic
#0E0916 #160D22 #331E4E #502F7A #6D40A6

Accessibility & contrast

On white

14.62
#331E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#331E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E4E
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E4E#FFFFFF#000000##FFFFFF
##331E4E1.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2850
Deuteranopia (green-blind)
#12284D
Tritanopia (blue-blind)
#2E2732
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331e4e;
/* rgb */ color: rgb(51, 30, 78);
/* oklch */ color: oklch(28.9% 0.086 301.4);
Tailwind
colors: {
  custom: {
    50: '#6d5a80',
    500: '#331e4e',
    950: '#000000',
  },
}
SCSS
$custom: #331e4e;
$custom-light: #6d5a80;
$custom-dark: #000000;
JSON
{
  "hex": "#331e4e",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 78
  },
  "hsl": {
    "h": 266.25,
    "s": 44.444,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28863,
    "c": 0.08591,
    "h": 301.4
  },
  "luminance": 0.02182
}

Semantic roles & 50–950 ramp

primary
#331E4E
secondary
#688345
accent
#D4549C
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #331E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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