#331D76#331D76

#331D76 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.142 H 286.8°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#331D76
RGBrgb(51, 29, 118)
HSLhsl(255, 61%, 29%)
HSVhsv(255, 75%, 46%)
CMYKcmyk(56.8%, 75.4%, 0%, 53.7%)
CIE-LABlab(19.60, 34.82, -47.21)
CIE-LCHlch(19.60, 58.66, 306.41°)
OKLaboklab(32.23% 0.041 -0.1358)
OKLCHoklch(32.23% 0.142 286.8)
XYZxyz(5.0736, 2.8903, 17.4266)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D76 #60761D
analogous
#1D3476 #331D76 #601D76
triadic
#331D76 #76331D #1D7633
tetradic
#331D76 #761D34 #60761D #1D7660
square
#331D76 #761D34 #60761D #1D7660
split-complementary
#331D76 #76601D #34761D
monochromatic
#0B0619 #1E1145 #331D76 #4829A7 #623ED0

Accessibility & contrast

On white

13.31
#331D76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#331D76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D76
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D76#FFFFFF#000000##FFFFFF
##331D761.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#163547
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #331d76;
/* rgb */ color: rgb(51, 29, 118);
/* oklch */ color: oklch(32.2% 0.142 286.8);
Tailwind
colors: {
  custom: {
    50: '#735b9e',
    500: '#331d76',
    950: '#000000',
  },
}
SCSS
$custom: #331d76;
$custom-light: #735b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#331d76",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 118
  },
  "hsl": {
    "h": 254.831,
    "s": 60.544,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32225,
    "c": 0.14184,
    "h": 286.8
  },
  "luminance": 0.02891
}

Semantic roles & 50–950 ramp

primary
#331D76
secondary
#91AA45
accent
#E444BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #331D76

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

Preview Lab → · Contrast checker → · Palette generator →

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