#331C41#331C41

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

Color values

HEX#331C41
RGBrgb(51, 28, 65)
HSLhsl(277, 40%, 18%)
HSVhsv(277, 57%, 25%)
CMYKcmyk(21.5%, 56.9%, 0%, 74.5%)
CIE-LABlab(15.04, 19.42, -19.16)
CIE-LCHlch(15.04, 27.28, 315.37°)
OKLaboklab(27.57% 0.0469 -0.0535)
OKLCHoklch(27.57% 0.071 311.3)
XYZxyz(2.7345, 1.9160, 5.2258)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C41 #2A411C
analogous
#201C41 #331C41 #411C3C
triadic
#331C41 #41331C #1C4133
tetradic
#331C41 #41201C #2A411C #1C3C41
square
#331C41 #41201C #2A411C #1C3C41
split-complementary
#331C41 #3C411C #1C4120
monochromatic
#110915 #110A16 #331C41 #552E6C #764197

Accessibility & contrast

On white

15.18
#331C41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331C41
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C41#FFFFFF#000000##FFFFFF
##331C411.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132542
Deuteranopia (green-blind)
#1A2640
Tritanopia (blue-blind)
#31222B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331c41;
/* rgb */ color: rgb(51, 28, 65);
/* oklch */ color: oklch(27.6% 0.071 311.3);
Tailwind
colors: {
  custom: {
    50: '#6c5976',
    500: '#331c41',
    950: '#000000',
  },
}
SCSS
$custom: #331c41;
$custom-light: #6c5976;
$custom-dark: #000000;
JSON
{
  "hex": "#331c41",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 65
  },
  "hsl": {
    "h": 277.297,
    "s": 39.785,
    "l": 18.235
  },
  "oklch": {
    "l": 0.27565,
    "c": 0.07117,
    "h": 311.3
  },
  "luminance": 0.01916
}

Semantic roles & 50–950 ramp

primary
#331C41
secondary
#567643
accent
#D05885
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #331C41

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

Preview Lab → · Contrast checker → · Palette generator →

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