#331E41#331E41

#331E41 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.0% C 0.067 H 310.4°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#331E41
RGBrgb(51, 30, 65)
HSLhsl(276, 37%, 19%)
HSVhsv(276, 54%, 25%)
CMYKcmyk(21.5%, 53.8%, 0%, 74.5%)
CIE-LABlab(15.56, 18.08, -18.34)
CIE-LCHlch(15.56, 25.75, 314.59°)
OKLaboklab(27.95% 0.0435 -0.0511)
OKLCHoklch(27.95% 0.067 310.4)
XYZxyz(2.7835, 2.0141, 5.2421)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E41 #2C411E
analogous
#211E41 #331E41 #411E3D
triadic
#331E41 #41331E #1E4133
tetradic
#331E41 #41211E #2C411E #1E3D41
square
#331E41 #41211E #2C411E #1E3D41
split-complementary
#331E41 #3D411E #1E4121
monochromatic
#100A15 #120B17 #331E41 #54316B #754595

Accessibility & contrast

On white

14.97
#331E41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#331E41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E41
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E41#FFFFFF#000000##FFFFFF
##331E411.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162642
Deuteranopia (green-blind)
#1B2740
Tritanopia (blue-blind)
#31242C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331e41;
/* rgb */ color: rgb(51, 30, 65);
/* oklch */ color: oklch(28.0% 0.067 310.4);
Tailwind
colors: {
  custom: {
    50: '#6c5a76',
    500: '#331e41',
    950: '#000000',
  },
}
SCSS
$custom: #331e41;
$custom-light: #6c5a76;
$custom-dark: #000000;
JSON
{
  "hex": "#331e41",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 65
  },
  "hsl": {
    "h": 276,
    "s": 36.842,
    "l": 18.627
  },
  "oklch": {
    "l": 0.27952,
    "c": 0.06714,
    "h": 310.4
  },
  "luminance": 0.02014
}

Semantic roles & 50–950 ramp

primary
#331E41
secondary
#597545
accent
#CD5B89
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070408
muted
#7A797B

Preview Lab

Preview with #331E41

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

Preview Lab → · Contrast checker → · Palette generator →

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