#331C5F#331C5F

#331C5F is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.9% C 0.113 H 294.3°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#331C5F
RGBrgb(51, 28, 95)
HSLhsl(261, 54%, 24%)
HSVhsv(261, 71%, 37%)
CMYKcmyk(46.3%, 70.5%, 0%, 62.7%)
CIE-LABlab(17.28, 28.22, -35.99)
CIE-LCHlch(17.28, 45.74, 308.10°)
OKLaboklab(29.91% 0.0465 -0.1028)
OKLCHoklch(29.91% 0.113 294.3)
XYZxyz(3.8455, 2.3604, 11.0773)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C5F #485F1C
analogous
#1C275F #331C5F #551C5F
triadic
#331C5F #5F331C #1C5F33
tetradic
#331C5F #5F1C27 #485F1C #1C5F55
square
#331C5F #5F1C27 #485F1C #1C5F55
split-complementary
#331C5F #5F551C #275F1C
monochromatic
#0D0718 #1A0E30 #331C5F #4C2A8E #6638BE

Accessibility & contrast

On white

14.26
#331C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#331C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C5F
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C5F#FFFFFF#000000##FFFFFF
##331C5F1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#00295E
Tritanopia (blue-blind)
#272C3A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331c5f;
/* rgb */ color: rgb(51, 28, 95);
/* oklch */ color: oklch(29.9% 0.113 294.3);
Tailwind
colors: {
  custom: {
    50: '#6f5a8d',
    500: '#331c5f',
    950: '#000000',
  },
}
SCSS
$custom: #331c5f;
$custom-light: #6f5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#331c5f",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 95
  },
  "hsl": {
    "h": 260.597,
    "s": 54.472,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29911,
    "c": 0.11287,
    "h": 294.3
  },
  "luminance": 0.02361
}

Semantic roles & 50–950 ramp

primary
#331C5F
secondary
#789442
accent
#DE4AAB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #331C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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