#321790#321790

#321790 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.179 H 281.4°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#321790
RGBrgb(50, 23, 144)
HSLhsl(253, 72%, 33%)
HSVhsv(253, 84%, 56%)
CMYKcmyk(65.3%, 84%, 0%, 43.5%)
CIE-LABlab(21.22, 45.63, -60.96)
CIE-LCHlch(21.22, 76.14, 306.82°)
OKLaboklab(34.16% 0.0356 -0.1759)
OKLCHoklch(34.16% 0.179 281.4)
XYZxyz(6.6542, 3.3040, 26.6672)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321790 #759017
analogous
#173990 #321790 #6E1790
triadic
#321790 #903217 #179032
tetradic
#321790 #901739 #759017 #17906E
square
#321790 #901739 #759017 #17906E
split-complementary
#321790 #906E17 #399017
monochromatic
#0D0626 #200F5B #321790 #441FC5 #6441E1

Accessibility & contrast

On white

12.64
#321790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#321790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321790
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321790#FFFFFF#000000##FFFFFF
##3217901.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002F8E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #321790;
/* rgb */ color: rgb(50, 23, 144);
/* oklch */ color: oklch(34.2% 0.179 281.4);
Tailwind
colors: {
  custom: {
    50: '#785ab2',
    500: '#321790',
    950: '#000000',
  },
}
SCSS
$custom: #321790;
$custom-light: #785ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#321790",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 253.388,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34162,
    "c": 0.17945,
    "h": 281.4
  },
  "luminance": 0.03305
}

Semantic roles & 50–950 ramp

primary
#321790
secondary
#A5C142
accent
#EF39C6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321790

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

Preview Lab → · Contrast checker → · Palette generator →

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