#321782#321782

#321782 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.163 H 284.4°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#321782
RGBrgb(50, 23, 130)
HSLhsl(255, 70%, 30%)
HSVhsv(255, 82%, 51%)
CMYKcmyk(61.5%, 82.3%, 0%, 49%)
CIE-LABlab(19.65, 41.48, -54.78)
CIE-LCHlch(19.65, 68.71, 307.13°)
OKLaboklab(32.61% 0.0404 -0.1579)
OKLCHoklch(32.61% 0.163 284.4)
XYZxyz(5.6498, 2.9022, 21.3772)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321782 #678217
analogous
#173282 #321782 #671782
triadic
#321782 #823217 #178232
tetradic
#321782 #821732 #678217 #178267
square
#321782 #821732 #678217 #178267
split-complementary
#321782 #826717 #328217
monochromatic
#0A051A #1E0E4E #321782 #4620B6 #6138DC

Accessibility & contrast

On white

13.29
#321782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#321782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321782
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321782#FFFFFF#000000##FFFFFF
##3217821.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321782;
/* rgb */ color: rgb(50, 23, 130);
/* oklch */ color: oklch(32.6% 0.163 284.4);
Tailwind
colors: {
  custom: {
    50: '#7559a7',
    500: '#321782',
    950: '#000000',
  },
}
SCSS
$custom: #321782;
$custom-light: #7559a7;
$custom-dark: #000000;
JSON
{
  "hex": "#321782",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 255.14,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.32609,
    "c": 0.16298,
    "h": 284.4
  },
  "luminance": 0.02903
}

Semantic roles & 50–950 ramp

primary
#321782
secondary
#98B63E
accent
#ED3BC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321782

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

Preview Lab → · Contrast checker → · Palette generator →

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