#331C4A#331C4A

#331C4A is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.084 H 304.7°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#331C4A
RGBrgb(51, 28, 74)
HSLhsl(270, 45%, 20%)
HSVhsv(270, 62%, 29%)
CMYKcmyk(31.1%, 62.2%, 0%, 71%)
CIE-LABlab(15.64, 21.93, -24.45)
CIE-LCHlch(15.64, 32.85, 311.89°)
OKLaboklab(28.2% 0.0477 -0.0689)
OKLCHoklch(28.2% 0.084 304.7)
XYZxyz(3.0163, 2.0287, 6.7099)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C4A #334A1C
analogous
#1C1C4A #331C4A #4A1C4A
triadic
#331C4A #4A331C #1C4A33
tetradic
#331C4A #4A1C1C #334A1C #1C4A4A
square
#331C4A #4A1C1C #334A1C #1C4A4A
split-complementary
#331C4A #4A4A1C #1C4A1C
monochromatic
#0F0816 #140B1E #331C4A #522D76 #703EA3

Accessibility & contrast

On white

14.94
#331C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#331C4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C4A
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C4A#FFFFFF#000000##FFFFFF
##331C4A1.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B264C
Deuteranopia (green-blind)
#132749
Tritanopia (blue-blind)
#2F2530
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331c4a;
/* rgb */ color: rgb(51, 28, 74);
/* oklch */ color: oklch(28.2% 0.084 304.7);
Tailwind
colors: {
  custom: {
    50: '#6c597d',
    500: '#331c4a',
    950: '#000000',
  },
}
SCSS
$custom: #331c4a;
$custom-light: #6c597d;
$custom-dark: #000000;
JSON
{
  "hex": "#331c4a",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 74
  },
  "hsl": {
    "h": 270,
    "s": 45.098,
    "l": 20
  },
  "oklch": {
    "l": 0.28199,
    "c": 0.08383,
    "h": 304.7
  },
  "luminance": 0.02029
}

Semantic roles & 50–950 ramp

primary
#331C4A
secondary
#617F42
accent
#D55394
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #331C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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