#331AA0#331AA0

#331AA0 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.195 H 278.9°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#331AA0
RGBrgb(51, 26, 160)
HSLhsl(251, 72%, 36%)
HSVhsv(251, 84%, 63%)
CMYKcmyk(68.1%, 83.8%, 0%, 37.3%)
CIE-LABlab(23.61, 49.12, -66.86)
CIE-LCHlch(23.61, 82.96, 306.30°)
OKLaboklab(36.36% 0.0304 -0.1931)
OKLCHoklch(36.36% 0.195 278.9)
XYZxyz(8.0778, 3.9800, 33.5934)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331AA0 #87A01A
analogous
#1A44A0 #331AA0 #761AA0
triadic
#331AA0 #A0331A #1AA033
tetradic
#331AA0 #A01A44 #87A01A #1AA076
square
#331AA0 #A01A44 #87A01A #1AA076
split-complementary
#331AA0 #A0761A #44A01A
monochromatic
#110937 #22116B #331AA0 #4423D5 #6D52E3

Accessibility & contrast

On white

11.69
#331AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#331AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331AA0
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331AA0#FFFFFF#000000##FFFFFF
##331AA01.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA4
Deuteranopia (green-blind)
#00339E
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #331aa0;
/* rgb */ color: rgb(51, 26, 160);
/* oklch */ color: oklch(36.4% 0.195 278.9);
Tailwind
colors: {
  custom: {
    50: '#7c5cbd',
    500: '#331aa0',
    950: '#000000',
  },
}
SCSS
$custom: #331aa0;
$custom-light: #7c5cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#331aa0",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 160
  },
  "hsl": {
    "h": 251.194,
    "s": 72.043,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36365,
    "c": 0.19545,
    "h": 278.9
  },
  "luminance": 0.03981
}

Semantic roles & 50–950 ramp

primary
#331AA0
secondary
#B0C550
accent
#EF39CD
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #331AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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