#331C42#331C42

#331C42 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.073 H 310.4°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#331C42
RGBrgb(51, 28, 66)
HSLhsl(276, 40%, 18%)
HSVhsv(276, 58%, 26%)
CMYKcmyk(22.7%, 57.6%, 0%, 74.1%)
CIE-LABlab(15.10, 19.69, -19.76)
CIE-LCHlch(15.10, 27.89, 314.89°)
OKLaboklab(27.63% 0.0471 -0.0552)
OKLCHoklch(27.63% 0.073 310.4)
XYZxyz(2.7637, 1.9277, 5.3797)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C42 #2B421C
analogous
#201C42 #331C42 #421C3E
triadic
#331C42 #42331C #1C4233
tetradic
#331C42 #42201C #2B421C #1C3E42
square
#331C42 #42201C #2B421C #1C3E42
split-complementary
#331C42 #3E421C #1C4220
monochromatic
#110915 #120A17 #331C42 #542E6D #754098

Accessibility & contrast

On white

15.16
#331C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#331C42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C42
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C42#FFFFFF#000000##FFFFFF
##331C421.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122543
Deuteranopia (green-blind)
#192641
Tritanopia (blue-blind)
#31222C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331c42;
/* rgb */ color: rgb(51, 28, 66);
/* oklch */ color: oklch(27.6% 0.073 310.4);
Tailwind
colors: {
  custom: {
    50: '#6c5976',
    500: '#331c42',
    950: '#000000',
  },
}
SCSS
$custom: #331c42;
$custom-light: #6c5976;
$custom-dark: #000000;
JSON
{
  "hex": "#331c42",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 66
  },
  "hsl": {
    "h": 276.316,
    "s": 40.426,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27632,
    "c": 0.07256,
    "h": 310.4
  },
  "luminance": 0.01928
}

Semantic roles & 50–950 ramp

primary
#331C42
secondary
#577743
accent
#D05887
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #331C42

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

Preview Lab → · Contrast checker → · Palette generator →

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