#331381#331381

#331381 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.165 H 285.7°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#331381
RGBrgb(51, 19, 129)
HSLhsl(257, 74%, 29%)
HSVhsv(257, 85%, 51%)
CMYKcmyk(60.5%, 85.3%, 0%, 49.4%)
CIE-LABlab(19.03, 43.09, -55.16)
CIE-LCHlch(19.03, 70.00, 308.00°)
OKLaboklab(32.18% 0.0448 -0.1589)
OKLCHoklch(32.18% 0.165 285.7)
XYZxyz(5.5594, 2.7542, 21.0033)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331381 #618113
analogous
#132A81 #331381 #6A1381
triadic
#331381 #813313 #138133
tetradic
#331381 #81132A #618113 #13816A
square
#331381 #81132A #618113 #13816A
split-complementary
#331381 #816A13 #2A8113
monochromatic
#0B041B #1E0B4C #331381 #481BB6 #622EE0

Accessibility & contrast

On white

13.54
#331381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#331381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331381
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331381#FFFFFF#000000##FFFFFF
##3313811.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331381;
/* rgb */ color: rgb(51, 19, 129);
/* oklch */ color: oklch(32.2% 0.165 285.7);
Tailwind
colors: {
  custom: {
    50: '#7657a7',
    500: '#331381',
    950: '#000000',
  },
}
SCSS
$custom: #331381;
$custom-light: #7657a7;
$custom-dark: #000000;
JSON
{
  "hex": "#331381",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 257.455,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32176,
    "c": 0.16511,
    "h": 285.7
  },
  "luminance": 0.02755
}

Semantic roles & 50–950 ramp

primary
#331381
secondary
#92B63A
accent
#F137BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #331381

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

Preview Lab → · Contrast checker → · Palette generator →

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