#331481#331481

#331481 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.164 H 285.6°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#331481
RGBrgb(51, 20, 129)
HSLhsl(257, 73%, 29%)
HSVhsv(257, 84%, 51%)
CMYKcmyk(60.5%, 84.5%, 0%, 49.4%)
CIE-LABlab(19.18, 42.66, -54.92)
CIE-LCHlch(19.18, 69.54, 307.84°)
OKLaboklab(32.28% 0.0442 -0.1582)
OKLCHoklch(32.28% 0.164 285.6)
XYZxyz(5.5766, 2.7888, 21.0090)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331481 #628114
analogous
#142C81 #331481 #6A1481
triadic
#331481 #813314 #148133
tetradic
#331481 #81142C #628114 #14816A
square
#331481 #81142C #628114 #14816A
split-complementary
#331481 #816A14 #2C8114
monochromatic
#0A041A #1E0C4C #331481 #481CB6 #6230DF

Accessibility & contrast

On white

13.48
#331481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#331481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331481
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331481#FFFFFF#000000##FFFFFF
##3314811.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#06364C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #331481;
/* rgb */ color: rgb(51, 20, 129);
/* oklch */ color: oklch(32.3% 0.164 285.6);
Tailwind
colors: {
  custom: {
    50: '#7657a7',
    500: '#331481',
    950: '#000000',
  },
}
SCSS
$custom: #331481;
$custom-light: #7657a7;
$custom-dark: #000000;
JSON
{
  "hex": "#331481",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 257.064,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32277,
    "c": 0.16429,
    "h": 285.6
  },
  "luminance": 0.02789
}

Semantic roles & 50–950 ramp

primary
#331481
secondary
#93B63B
accent
#F038BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #331481

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

Preview Lab → · Contrast checker → · Palette generator →

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