#331D49#331D49

#331D49 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.3% C 0.081 H 304.9°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#331D49
RGBrgb(51, 29, 73)
HSLhsl(270, 43%, 20%)
HSVhsv(270, 60%, 29%)
CMYKcmyk(30.1%, 60.3%, 0%, 71.4%)
CIE-LABlab(15.82, 20.99, -23.48)
CIE-LCHlch(15.82, 31.49, 311.80°)
OKLaboklab(28.31% 0.0461 -0.0661)
OKLCHoklch(28.31% 0.081 304.9)
XYZxyz(3.0069, 2.0636, 6.5419)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D49 #33491D
analogous
#1D1D49 #331D49 #491D49
triadic
#331D49 #49331D #1D4933
tetradic
#331D49 #491D1D #33491D #1D4949
square
#331D49 #491D1D #33491D #1D4949
split-complementary
#331D49 #49491D #1D491D
monochromatic
#0F0916 #140C1D #331D49 #522E75 #7040A1

Accessibility & contrast

On white

14.86
#331D49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331D49
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D49#FFFFFF#000000##FFFFFF
##331D491.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E274A
Deuteranopia (green-blind)
#152748
Tritanopia (blue-blind)
#2F252F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331d49;
/* rgb */ color: rgb(51, 29, 73);
/* oklch */ color: oklch(28.3% 0.081 304.9);
Tailwind
colors: {
  custom: {
    50: '#6c5a7c',
    500: '#331d49',
    950: '#000000',
  },
}
SCSS
$custom: #331d49;
$custom-light: #6c5a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#331d49",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 73
  },
  "hsl": {
    "h": 270,
    "s": 43.137,
    "l": 20
  },
  "oklch": {
    "l": 0.2831,
    "c": 0.08057,
    "h": 304.9
  },
  "luminance": 0.02064
}

Semantic roles & 50–950 ramp

primary
#331D49
secondary
#617E44
accent
#D35594
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #331D49

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

Preview Lab → · Contrast checker → · Palette generator →

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