#331D6D#331D6D

#331D6D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.130 H 289.3°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#331D6D
RGBrgb(51, 29, 109)
HSLhsl(257, 58%, 27%)
HSVhsv(257, 73%, 43%)
CMYKcmyk(53.2%, 73.4%, 0%, 57.3%)
CIE-LABlab(18.74, 31.99, -42.80)
CIE-LCHlch(18.74, 53.43, 306.77°)
OKLaboklab(31.35% 0.043 -0.1229)
OKLCHoklch(31.35% 0.13 289.3)
XYZxyz(4.5641, 2.6865, 14.7431)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D6D #576D1D
analogous
#1D2F6D #331D6D #5B1D6D
triadic
#331D6D #6D331D #1D6D33
tetradic
#331D6D #6D1D2F #576D1D #1D6D5B
square
#331D6D #6D1D2F #576D1D #1D6D5B
split-complementary
#331D6D #6D5B1D #2F6D1D
monochromatic
#0B0618 #1C103D #331D6D #4A2A9D #623ACB

Accessibility & contrast

On white

13.66
#331D6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#331D6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D6D
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D6D#FFFFFF#000000##FFFFFF
##331D6D1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6F
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#1E3242
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #331d6d;
/* rgb */ color: rgb(51, 29, 109);
/* oklch */ color: oklch(31.4% 0.130 289.3);
Tailwind
colors: {
  custom: {
    50: '#715b98',
    500: '#331d6d',
    950: '#000000',
  },
}
SCSS
$custom: #331d6d;
$custom-light: #715b98;
$custom-dark: #000000;
JSON
{
  "hex": "#331d6d",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 109
  },
  "hsl": {
    "h": 256.5,
    "s": 57.971,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31352,
    "c": 0.13016,
    "h": 289.3
  },
  "luminance": 0.02687
}

Semantic roles & 50–950 ramp

primary
#331D6D
secondary
#88A244
accent
#E147B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #331D6D

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

Preview Lab → · Contrast checker → · Palette generator →

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