#331076#331076

#331076 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.155 H 289.1°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#331076
RGBrgb(51, 16, 118)
HSLhsl(261, 76%, 26%)
HSVhsv(261, 86%, 46%)
CMYKcmyk(56.8%, 86.4%, 0%, 53.7%)
CIE-LABlab(17.38, 41.20, -50.86)
CIE-LCHlch(17.38, 65.46, 309.01°)
OKLaboklab(30.67% 0.0508 -0.1463)
OKLCHoklch(30.67% 0.155 289.1)
XYZxyz(4.8196, 2.3822, 17.3419)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331076 #537610
analogous
#102076 #331076 #661076
triadic
#331076 #763310 #107633
tetradic
#331076 #761020 #537610 #107666
square
#331076 #761020 #537610 #107666
split-complementary
#331076 #766610 #207610
monochromatic
#0C041B #1C0940 #331076 #4A17AC #6220E1

Accessibility & contrast

On white

14.22
#331076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#331076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331076
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331076#FFFFFF#000000##FFFFFF
##3310761.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#172F45
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331076;
/* rgb */ color: rgb(51, 16, 118);
/* oklch */ color: oklch(30.7% 0.155 289.1);
Tailwind
colors: {
  custom: {
    50: '#74549f',
    500: '#331076',
    950: '#000000',
  },
}
SCSS
$custom: #331076;
$custom-light: #74549f;
$custom-dark: #000000;
JSON
{
  "hex": "#331076",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 118
  },
  "hsl": {
    "h": 260.588,
    "s": 76.119,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30673,
    "c": 0.15491,
    "h": 289.1
  },
  "luminance": 0.02382
}

Semantic roles & 50–950 ramp

primary
#331076
secondary
#84AD35
accent
#F335B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #331076

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

Preview Lab → · Contrast checker → · Palette generator →

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