#321795#321795

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

Color values

HEX#321795
RGBrgb(50, 23, 149)
HSLhsl(253, 73%, 34%)
HSVhsv(253, 85%, 58%)
CMYKcmyk(66.4%, 84.6%, 0%, 41.6%)
CIE-LABlab(21.80, 47.10, -63.10)
CIE-LCHlch(21.80, 78.74, 306.74°)
OKLaboklab(34.73% 0.0339 -0.1821)
OKLCHoklch(34.73% 0.185 280.5)
XYZxyz(7.0449, 3.4603, 28.7246)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321795 #7A9517
analogous
#173B95 #321795 #711795
triadic
#321795 #953217 #179532
tetradic
#321795 #95173B #7A9517 #179571
square
#321795 #95173B #7A9517 #179571
split-complementary
#321795 #957117 #3B9517
monochromatic
#0E072B #200F60 #321795 #441FCA #6644E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##321795#FFFFFF#000000##FFFFFF
##3217951.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)
#003898
Deuteranopia (green-blind)
#002F93
Tritanopia (blue-blind)
#003F58
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #321795;
/* rgb */ color: rgb(50, 23, 149);
/* oklch */ color: oklch(34.7% 0.185 280.5);
Tailwind
colors: {
  custom: {
    50: '#795ab5',
    500: '#321795',
    950: '#000000',
  },
}
SCSS
$custom: #321795;
$custom-light: #795ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#321795",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 149
  },
  "hsl": {
    "h": 252.857,
    "s": 73.256,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34729,
    "c": 0.18524,
    "h": 280.5
  },
  "luminance": 0.03461
}

Semantic roles & 50–950 ramp

primary
#321795
secondary
#A8C345
accent
#F038C8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321795

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

Preview Lab → · Contrast checker → · Palette generator →

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