#331E6D#331E6D

#331E6D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.129 H 289.0°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#331E6D
RGBrgb(51, 30, 109)
HSLhsl(256, 57%, 27%)
HSVhsv(256, 72%, 43%)
CMYKcmyk(53.2%, 72.5%, 0%, 57.3%)
CIE-LABlab(18.96, 31.40, -42.45)
CIE-LCHlch(18.96, 52.80, 306.49°)
OKLaboklab(31.5% 0.042 -0.1218)
OKLCHoklch(31.5% 0.129 289)
XYZxyz(4.5890, 2.7363, 14.7514)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E6D #586D1E
analogous
#1E316D #331E6D #5B1E6D
triadic
#331E6D #6D331E #1E6D33
tetradic
#331E6D #6D1E31 #586D1E #1E6D5B
square
#331E6D #6D1E31 #586D1E #1E6D5B
split-complementary
#331E6D #6D5B1E #316D1E
monochromatic
#0B0718 #1D113D #331E6D #492B9D #623CC9

Accessibility & contrast

On white

13.57
#331E6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331E6D
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E6D#FFFFFF#000000##FFFFFF
##331E6D1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#1E3243
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #331e6d;
/* rgb */ color: rgb(51, 30, 109);
/* oklch */ color: oklch(31.5% 0.129 289.0);
Tailwind
colors: {
  custom: {
    50: '#715b98',
    500: '#331e6d',
    950: '#000000',
  },
}
SCSS
$custom: #331e6d;
$custom-light: #715b98;
$custom-dark: #000000;
JSON
{
  "hex": "#331e6d",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 109
  },
  "hsl": {
    "h": 255.949,
    "s": 56.835,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31504,
    "c": 0.12886,
    "h": 289
  },
  "luminance": 0.02736
}

Semantic roles & 50–950 ramp

primary
#331E6D
secondary
#89A145
accent
#E048B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #331E6D

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

Preview Lab → · Contrast checker → · Palette generator →

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