#331893#331893

#331893 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.182 H 281.3°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#331893
RGBrgb(51, 24, 147)
HSLhsl(253, 72%, 34%)
HSVhsv(253, 84%, 58%)
CMYKcmyk(65.3%, 83.7%, 0%, 42.4%)
CIE-LABlab(21.81, 46.17, -61.84)
CIE-LCHlch(21.81, 77.18, 306.75°)
OKLaboklab(34.69% 0.0357 -0.1784)
OKLCHoklch(34.69% 0.182 281.3)
XYZxyz(6.9567, 3.4631, 27.9000)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331893 #789318
analogous
#183A93 #331893 #701893
triadic
#331893 #933318 #189333
tetradic
#331893 #93183A #789318 #189370
square
#331893 #93183A #789318 #189370
split-complementary
#331893 #937018 #3A9318
monochromatic
#0E072A #210F5E #331893 #4521C8 #6745E1

Accessibility & contrast

On white

12.41
#331893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#331893 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331893
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331893#FFFFFF#000000##FFFFFF
##3318931.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003896
Deuteranopia (green-blind)
#003091
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #331893;
/* rgb */ color: rgb(51, 24, 147);
/* oklch */ color: oklch(34.7% 0.182 281.3);
Tailwind
colors: {
  custom: {
    50: '#795ab4',
    500: '#331893',
    950: '#000000',
  },
}
SCSS
$custom: #331893;
$custom-light: #795ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#331893",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 147
  },
  "hsl": {
    "h": 253.171,
    "s": 71.93,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34692,
    "c": 0.18198,
    "h": 281.3
  },
  "luminance": 0.03464
}

Semantic roles & 50–950 ramp

primary
#331893
secondary
#A6C245
accent
#EF39C7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #331893

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

Preview Lab → · Contrast checker → · Palette generator →

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