#331C73#331C73

#331C73 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.139 H 287.8°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#331C73
RGBrgb(51, 28, 115)
HSLhsl(256, 61%, 28%)
HSVhsv(256, 76%, 45%)
CMYKcmyk(55.7%, 75.7%, 0%, 54.9%)
CIE-LABlab(19.11, 34.44, -46.09)
CIE-LCHlch(19.11, 57.54, 306.77°)
OKLaboklab(31.79% 0.0426 -0.1325)
OKLCHoklch(31.79% 0.139 287.8)
XYZxyz(4.8741, 2.7719, 16.4945)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C73 #5C731C
analogous
#1C3073 #331C73 #5E1C73
triadic
#331C73 #73331C #1C7333
tetradic
#331C73 #731C30 #5C731C #1C735E
square
#331C73 #731C30 #5C731C #1C735E
split-complementary
#331C73 #735E1C #30731C
monochromatic
#0B0619 #1D1042 #331C73 #4928A4 #623ACF

Accessibility & contrast

On white

13.51
#331C73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#331C73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C73
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C73#FFFFFF#000000##FFFFFF
##331C731.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#193345
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #331c73;
/* rgb */ color: rgb(51, 28, 115);
/* oklch */ color: oklch(31.8% 0.139 287.8);
Tailwind
colors: {
  custom: {
    50: '#725b9c',
    500: '#331c73',
    950: '#000000',
  },
}
SCSS
$custom: #331c73;
$custom-light: #725b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#331c73",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 115
  },
  "hsl": {
    "h": 255.862,
    "s": 60.839,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31786,
    "c": 0.13917,
    "h": 287.8
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#331C73
secondary
#8DA743
accent
#E444BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #331C73

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

Preview Lab → · Contrast checker → · Palette generator →

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