#331E6F#331E6F

#331E6F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.7% C 0.132 H 288.4°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#331E6F
RGBrgb(51, 30, 111)
HSLhsl(256, 57%, 28%)
HSVhsv(256, 73%, 44%)
CMYKcmyk(54.1%, 73%, 0%, 56.5%)
CIE-LABlab(19.14, 32.03, -43.45)
CIE-LCHlch(19.14, 53.98, 306.40°)
OKLaboklab(31.69% 0.0416 -0.1248)
OKLCHoklch(31.69% 0.132 288.4)
XYZxyz(4.6979, 2.7798, 15.3249)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E6F #5A6F1E
analogous
#1E316F #331E6F #5C1E6F
triadic
#331E6F #6F331E #1E6F33
tetradic
#331E6F #6F1E31 #5A6F1E #1E6F5C
square
#331E6F #6F1E31 #5A6F1E #1E6F5C
split-complementary
#331E6F #6F5C1E #316F1E
monochromatic
#0B0718 #1D113F #331E6F #492B9F #623DCB

Accessibility & contrast

On white

13.50
#331E6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#331E6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E6F
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E6F#FFFFFF#000000##FFFFFF
##331E6F1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#1D3344
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #331e6f;
/* rgb */ color: rgb(51, 30, 111);
/* oklch */ color: oklch(31.7% 0.132 288.4);
Tailwind
colors: {
  custom: {
    50: '#715c99',
    500: '#331e6f',
    950: '#000000',
  },
}
SCSS
$custom: #331e6f;
$custom-light: #715c99;
$custom-dark: #000000;
JSON
{
  "hex": "#331e6f",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 111
  },
  "hsl": {
    "h": 255.556,
    "s": 57.447,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31693,
    "c": 0.1315,
    "h": 288.4
  },
  "luminance": 0.0278
}

Semantic roles & 50–950 ramp

primary
#331E6F
secondary
#8BA346
accent
#E147B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #331E6F

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

Preview Lab → · Contrast checker → · Palette generator →

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