#331993#331993

#331993 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.181 H 281.2°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#331993
RGBrgb(51, 25, 147)
HSLhsl(253, 71%, 34%)
HSVhsv(253, 83%, 58%)
CMYKcmyk(65.3%, 83%, 0%, 42.4%)
CIE-LABlab(21.96, 45.73, -61.59)
CIE-LCHlch(21.96, 76.71, 306.59°)
OKLaboklab(34.8% 0.0352 -0.1777)
OKLCHoklch(34.8% 0.181 281.2)
XYZxyz(6.9777, 3.5051, 27.9070)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331993 #799319
analogous
#193C93 #331993 #701993
triadic
#331993 #933319 #199333
tetradic
#331993 #93193C #799319 #199370
square
#331993 #93193C #799319 #199370
split-complementary
#331993 #937019 #3C9319
monochromatic
#0F072A #21105F #331993 #4522C7 #6747E0

Accessibility & contrast

On white

12.34
#331993 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#331993 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331993
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331993#FFFFFF#000000##FFFFFF
##3319931.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331993;
/* rgb */ color: rgb(51, 25, 147);
/* oklch */ color: oklch(34.8% 0.181 281.2);
Tailwind
colors: {
  custom: {
    50: '#795bb4',
    500: '#331993',
    950: '#000000',
  },
}
SCSS
$custom: #331993;
$custom-light: #795bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#331993",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 147
  },
  "hsl": {
    "h": 252.787,
    "s": 70.93,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34797,
    "c": 0.18118,
    "h": 281.2
  },
  "luminance": 0.03506
}

Semantic roles & 50–950 ramp

primary
#331993
secondary
#A7C147
accent
#EE3AC7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #331993

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

Preview Lab → · Contrast checker → · Palette generator →

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