#331D4A#331D4A

#331D4A is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.4% C 0.082 H 304.2°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#331D4A
RGBrgb(51, 29, 74)
HSLhsl(269, 44%, 20%)
HSVhsv(269, 61%, 29%)
CMYKcmyk(31.1%, 60.8%, 0%, 71%)
CIE-LABlab(15.89, 21.28, -24.05)
CIE-LCHlch(15.89, 32.12, 311.50°)
OKLaboklab(28.38% 0.0461 -0.0678)
OKLCHoklch(28.38% 0.082 304.2)
XYZxyz(3.0404, 2.0770, 6.7180)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D4A #344A1D
analogous
#1D1E4A #331D4A #491D4A
triadic
#331D4A #4A331D #1D4A33
tetradic
#331D4A #4A1D1E #344A1D #1D4A49
square
#331D4A #4A1D1E #344A1D #1D4A49
split-complementary
#331D4A #4A491D #1E4A1D
monochromatic
#0F0916 #150C1E #331D4A #512E76 #703FA2

Accessibility & contrast

On white

14.84
#331D4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#331D4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D4A
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D4A#FFFFFF#000000##FFFFFF
##331D4A1.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D274C
Deuteranopia (green-blind)
#142849
Tritanopia (blue-blind)
#2F2630
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331d4a;
/* rgb */ color: rgb(51, 29, 74);
/* oklch */ color: oklch(28.4% 0.082 304.2);
Tailwind
colors: {
  custom: {
    50: '#6c5a7d',
    500: '#331d4a',
    950: '#000000',
  },
}
SCSS
$custom: #331d4a;
$custom-light: #6c5a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#331d4a",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 74
  },
  "hsl": {
    "h": 269.333,
    "s": 43.689,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28382,
    "c": 0.08199,
    "h": 304.2
  },
  "luminance": 0.02077
}

Semantic roles & 50–950 ramp

primary
#331D4A
secondary
#627F44
accent
#D35495
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #331D4A

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

Preview Lab → · Contrast checker → · Palette generator →

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