#331E4A#331E4A

#331E4A is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.080 H 303.8°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#331E4A
RGBrgb(51, 30, 74)
HSLhsl(269, 42%, 20%)
HSVhsv(269, 59%, 29%)
CMYKcmyk(31.1%, 59.5%, 0%, 71%)
CIE-LABlab(16.14, 20.62, -23.65)
CIE-LCHlch(16.14, 31.38, 311.09°)
OKLaboklab(28.57% 0.0446 -0.0666)
OKLCHoklch(28.57% 0.08 303.8)
XYZxyz(3.0653, 2.1268, 6.7263)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E4A #354A1E
analogous
#1E1F4A #331E4A #491E4A
triadic
#331E4A #4A331E #1E4A33
tetradic
#331E4A #4A1E1F #354A1E #1E4A49
square
#331E4A #4A1E1F #354A1E #1E4A49
split-complementary
#331E4A #4A491E #1F4A1E
monochromatic
#0F0916 #150C1E #331E4A #513076 #6F41A1

Accessibility & contrast

On white

14.73
#331E4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#331E4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E4A
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E4A#FFFFFF#000000##FFFFFF
##331E4A1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331e4a;
/* rgb */ color: rgb(51, 30, 74);
/* oklch */ color: oklch(28.6% 0.080 303.8);
Tailwind
colors: {
  custom: {
    50: '#6c5a7d',
    500: '#331e4a',
    950: '#000000',
  },
}
SCSS
$custom: #331e4a;
$custom-light: #6c5a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#331e4a",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 74
  },
  "hsl": {
    "h": 268.636,
    "s": 42.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28569,
    "c": 0.08014,
    "h": 303.8
  },
  "luminance": 0.02127
}

Semantic roles & 50–950 ramp

primary
#331E4A
secondary
#637F45
accent
#D25697
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070409
muted
#7A797B

Preview Lab

Preview with #331E4A

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

Preview Lab → · Contrast checker → · Palette generator →

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