#331D6F#331D6F

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

Color values

HEX#331D6F
RGBrgb(51, 29, 111)
HSLhsl(256, 59%, 27%)
HSVhsv(256, 74%, 44%)
CMYKcmyk(54.1%, 73.9%, 0%, 56.5%)
CIE-LABlab(18.93, 32.62, -43.79)
CIE-LCHlch(18.93, 54.61, 306.68°)
OKLaboklab(31.54% 0.0426 -0.1258)
OKLCHoklch(31.54% 0.133 288.7)
XYZxyz(4.6730, 2.7300, 15.3166)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D6F #596F1D
analogous
#1D306F #331D6F #5C1D6F
triadic
#331D6F #6F331D #1D6F33
tetradic
#331D6F #6F1D30 #596F1D #1D6F5C
square
#331D6F #6F1D30 #596F1D #1D6F5C
split-complementary
#331D6F #6F5C1D #306F1D
monochromatic
#0B0618 #1D103E #331D6F #492AA0 #623BCC

Accessibility & contrast

On white

13.58
#331D6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331D6F
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D6F#FFFFFF#000000##FFFFFF
##331D6F1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331d6f;
/* rgb */ color: rgb(51, 29, 111);
/* oklch */ color: oklch(31.5% 0.133 288.7);
Tailwind
colors: {
  custom: {
    50: '#725b99',
    500: '#331d6f',
    950: '#000000',
  },
}
SCSS
$custom: #331d6f;
$custom-light: #725b99;
$custom-dark: #000000;
JSON
{
  "hex": "#331d6f",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 111
  },
  "hsl": {
    "h": 256.098,
    "s": 58.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31542,
    "c": 0.13277,
    "h": 288.7
  },
  "luminance": 0.0273
}

Semantic roles & 50–950 ramp

primary
#331D6F
secondary
#8AA344
accent
#E246B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #331D6F

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

Preview Lab → · Contrast checker → · Palette generator →

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