#331976#331976

#331976 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.146 H 287.6°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#331976
RGBrgb(51, 25, 118)
HSLhsl(257, 65%, 28%)
HSVhsv(257, 79%, 46%)
CMYKcmyk(56.8%, 78.8%, 0%, 53.7%)
CIE-LABlab(18.83, 36.99, -48.47)
CIE-LCHlch(18.83, 60.98, 307.35°)
OKLaboklab(31.68% 0.0444 -0.1395)
OKLCHoklch(31.68% 0.146 287.6)
XYZxyz(4.9819, 2.7068, 17.3960)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331976 #5C7619
analogous
#192D76 #331976 #611976
triadic
#331976 #763319 #197633
tetradic
#331976 #76192D #5C7619 #197661
square
#331976 #76192D #5C7619 #197661
split-complementary
#331976 #766119 #2D7619
monochromatic
#0B0519 #1D0E43 #331976 #4924A8 #6235D4

Accessibility & contrast

On white

13.62
#331976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#331976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331976
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331976#FFFFFF#000000##FFFFFF
##3319761.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#173346
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #331976;
/* rgb */ color: rgb(51, 25, 118);
/* oklch */ color: oklch(31.7% 0.146 287.6);
Tailwind
colors: {
  custom: {
    50: '#73599e',
    500: '#331976',
    950: '#000000',
  },
}
SCSS
$custom: #331976;
$custom-light: #73599e;
$custom-dark: #000000;
JSON
{
  "hex": "#331976",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 256.774,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31682,
    "c": 0.14635,
    "h": 287.6
  },
  "luminance": 0.02707
}

Semantic roles & 50–950 ramp

primary
#331976
secondary
#8DAB40
accent
#E840B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #331976

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

Preview Lab → · Contrast checker → · Palette generator →

#331976 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva