#331C3F#331C3F

#331C3F is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.4% C 0.068 H 313.0°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#331C3F
RGBrgb(51, 28, 63)
HSLhsl(279, 38%, 18%)
HSVhsv(279, 56%, 25%)
CMYKcmyk(19%, 55.6%, 0%, 75.3%)
CIE-LABlab(14.92, 18.87, -17.96)
CIE-LCHlch(14.92, 26.05, 316.42°)
OKLaboklab(27.43% 0.0466 -0.05)
OKLCHoklch(27.43% 0.068 313)
XYZxyz(2.6775, 1.8933, 4.9260)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C3F #283F1C
analogous
#211C3F #331C3F #3F1C39
triadic
#331C3F #3F331C #1C3F33
tetradic
#331C3F #3F211C #283F1C #1C393F
square
#331C3F #3F211C #283F1C #1C393F
split-complementary
#331C3F #393F1C #1C3F21
monochromatic
#110915 #110915 #331C3F #552F69 #784294

Accessibility & contrast

On white

15.23
#331C3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#331C3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C3F
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C3F#FFFFFF#000000##FFFFFF
##331C3F1.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142440
Deuteranopia (green-blind)
#1B263E
Tritanopia (blue-blind)
#32212A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331c3f;
/* rgb */ color: rgb(51, 28, 63);
/* oklch */ color: oklch(27.4% 0.068 313.0);
Tailwind
colors: {
  custom: {
    50: '#6c5974',
    500: '#331c3f',
    950: '#000000',
  },
}
SCSS
$custom: #331c3f;
$custom-light: #6c5974;
$custom-dark: #000000;
JSON
{
  "hex": "#331c3f",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 63
  },
  "hsl": {
    "h": 279.429,
    "s": 38.462,
    "l": 17.843
  },
  "oklch": {
    "l": 0.27433,
    "c": 0.06838,
    "h": 313
  },
  "luminance": 0.01893
}

Semantic roles & 50–950 ramp

primary
#331C3F
secondary
#547443
accent
#CE5982
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #331C3F

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

Preview Lab → · Contrast checker → · Palette generator →

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