#331881#331881

#331881 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.161 H 285.0°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#331881
RGBrgb(51, 24, 129)
HSLhsl(255, 69%, 30%)
HSVhsv(255, 81%, 51%)
CMYKcmyk(60.5%, 81.4%, 0%, 49.4%)
CIE-LABlab(19.81, 40.82, -53.88)
CIE-LCHlch(19.81, 67.60, 307.15°)
OKLaboklab(32.71% 0.0417 -0.1552)
OKLCHoklch(32.71% 0.161 285)
XYZxyz(5.6531, 2.9417, 21.0345)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331881 #668118
analogous
#183181 #331881 #681881
triadic
#331881 #813318 #188133
tetradic
#331881 #811831 #668118 #188168
square
#331881 #811831 #668118 #188168
split-complementary
#331881 #816818 #318118
monochromatic
#0A051A #1F0E4D #331881 #4722B5 #6339DA

Accessibility & contrast

On white

13.22
#331881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#331881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331881
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331881#FFFFFF#000000##FFFFFF
##3318811.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#05374C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #331881;
/* rgb */ color: rgb(51, 24, 129);
/* oklch */ color: oklch(32.7% 0.161 285.0);
Tailwind
colors: {
  custom: {
    50: '#7559a7',
    500: '#331881',
    950: '#000000',
  },
}
SCSS
$custom: #331881;
$custom-light: #7559a7;
$custom-dark: #000000;
JSON
{
  "hex": "#331881",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 255.429,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.32714,
    "c": 0.16075,
    "h": 285
  },
  "luminance": 0.02942
}

Semantic roles & 50–950 ramp

primary
#331881
secondary
#97B540
accent
#EB3CBE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #331881

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

Preview Lab → · Contrast checker → · Palette generator →

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