#331884#331884

#331884 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.164 H 284.3°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#331884
RGBrgb(51, 24, 132)
HSLhsl(255, 69%, 31%)
HSVhsv(255, 82%, 52%)
CMYKcmyk(61.4%, 81.8%, 0%, 48.2%)
CIE-LABlab(20.13, 41.72, -55.24)
CIE-LCHlch(20.13, 69.22, 307.07°)
OKLaboklab(33.04% 0.0407 -0.1592)
OKLCHoklch(33.04% 0.164 284.3)
XYZxyz(5.8555, 3.0226, 22.1002)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331884 #698418
analogous
#183384 #331884 #691884
triadic
#331884 #843318 #188433
tetradic
#331884 #841833 #698418 #188469
square
#331884 #841833 #698418 #188469
split-complementary
#331884 #846918 #338418
monochromatic
#0B051C #1F0F50 #331884 #4721B8 #633BDB

Accessibility & contrast

On white

13.09
#331884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#331884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331884
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331884#FFFFFF#000000##FFFFFF
##3318841.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #331884;
/* rgb */ color: rgb(51, 24, 132);
/* oklch */ color: oklch(33.0% 0.164 284.3);
Tailwind
colors: {
  custom: {
    50: '#7659a9',
    500: '#331884',
    950: '#000000',
  },
}
SCSS
$custom: #331884;
$custom-light: #7659a9;
$custom-dark: #000000;
JSON
{
  "hex": "#331884",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 255,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33037,
    "c": 0.16434,
    "h": 284.3
  },
  "luminance": 0.03023
}

Semantic roles & 50–950 ramp

primary
#331884
secondary
#9AB840
accent
#EC3CC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #331884

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

Preview Lab → · Contrast checker → · Palette generator →

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