#331A83#331A83

#331A83 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.161 H 284.3°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#331A83
RGBrgb(51, 26, 131)
HSLhsl(254, 67%, 31%)
HSVhsv(254, 80%, 51%)
CMYKcmyk(61.1%, 80.2%, 0%, 48.6%)
CIE-LABlab(20.36, 40.44, -54.23)
CIE-LCHlch(20.36, 67.65, 306.72°)
OKLaboklab(33.17% 0.0397 -0.1563)
OKLCHoklch(33.17% 0.161 284.3)
XYZxyz(5.8301, 3.0809, 21.7558)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A83 #6A831A
analogous
#1A3583 #331A83 #671A83
triadic
#331A83 #83331A #1A8333
tetradic
#331A83 #831A35 #6A831A #1A8367
square
#331A83 #831A35 #6A831A #1A8367
split-complementary
#331A83 #83671A #35831A
monochromatic
#0B061D #1F1050 #331A83 #4724B6 #633FD9

Accessibility & contrast

On white

12.99
#331A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#331A83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A83
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A83#FFFFFF#000000##FFFFFF
##331A831.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002E81
Tritanopia (blue-blind)
#01394E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #331a83;
/* rgb */ color: rgb(51, 26, 131);
/* oklch */ color: oklch(33.2% 0.161 284.3);
Tailwind
colors: {
  custom: {
    50: '#765aa8',
    500: '#331a83',
    950: '#000000',
  },
}
SCSS
$custom: #331a83;
$custom-light: #765aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#331a83",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 131
  },
  "hsl": {
    "h": 254.286,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33165,
    "c": 0.16125,
    "h": 284.3
  },
  "luminance": 0.03081
}

Semantic roles & 50–950 ramp

primary
#331A83
secondary
#9BB742
accent
#EA3EC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #331A83

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

Preview Lab → · Contrast checker → · Palette generator →

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