#331D77#331D77

#331D77 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.143 H 286.5°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#331D77
RGBrgb(51, 29, 119)
HSLhsl(255, 61%, 29%)
HSVhsv(255, 76%, 47%)
CMYKcmyk(57.1%, 75.6%, 0%, 53.3%)
CIE-LABlab(19.70, 35.13, -47.69)
CIE-LCHlch(19.70, 59.23, 306.38°)
OKLaboklab(32.32% 0.0407 -0.1372)
OKLCHoklch(32.32% 0.143 286.5)
XYZxyz(5.1334, 2.9142, 17.7412)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D77 #61771D
analogous
#1D3477 #331D77 #601D77
triadic
#331D77 #77331D #1D7733
tetradic
#331D77 #771D34 #61771D #1D7760
square
#331D77 #771D34 #61771D #1D7760
split-complementary
#331D77 #77601D #34771D
monochromatic
#0B0619 #1E1146 #331D77 #4829A8 #623ED0

Accessibility & contrast

On white

13.27
#331D77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331D77
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D77#FFFFFF#000000##FFFFFF
##331D771.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#153548
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #331d77;
/* rgb */ color: rgb(51, 29, 119);
/* oklch */ color: oklch(32.3% 0.143 286.5);
Tailwind
colors: {
  custom: {
    50: '#735b9f',
    500: '#331d77',
    950: '#000000',
  },
}
SCSS
$custom: #331d77;
$custom-light: #735b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#331d77",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 119
  },
  "hsl": {
    "h": 254.667,
    "s": 60.811,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32324,
    "c": 0.14312,
    "h": 286.5
  },
  "luminance": 0.02914
}

Semantic roles & 50–950 ramp

primary
#331D77
secondary
#92AB45
accent
#E444BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #331D77

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

Preview Lab → · Contrast checker → · Palette generator →

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