#321783#321783

#321783 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.164 H 284.1°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#321783
RGBrgb(50, 23, 131)
HSLhsl(255, 70%, 30%)
HSVhsv(255, 82%, 51%)
CMYKcmyk(61.8%, 82.4%, 0%, 48.6%)
CIE-LABlab(19.76, 41.78, -55.23)
CIE-LCHlch(19.76, 69.25, 307.11°)
OKLaboklab(32.72% 0.0401 -0.1592)
OKLCHoklch(32.72% 0.164 284.1)
XYZxyz(5.7173, 2.9292, 21.7325)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321783 #688317
analogous
#173283 #321783 #681783
triadic
#321783 #833217 #178332
tetradic
#321783 #831732 #688317 #178368
square
#321783 #831732 #688317 #178368
split-complementary
#321783 #836817 #328317
monochromatic
#0A051B #1E0E4F #321783 #4620B7 #6138DC

Accessibility & contrast

On white

13.24
#321783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#321783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321783
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321783#FFFFFF#000000##FFFFFF
##3217831.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321783;
/* rgb */ color: rgb(50, 23, 131);
/* oklch */ color: oklch(32.7% 0.164 284.1);
Tailwind
colors: {
  custom: {
    50: '#7559a8',
    500: '#321783',
    950: '#000000',
  },
}
SCSS
$custom: #321783;
$custom-light: #7559a8;
$custom-dark: #000000;
JSON
{
  "hex": "#321783",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 255,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32719,
    "c": 0.16417,
    "h": 284.1
  },
  "luminance": 0.0293
}

Semantic roles & 50–950 ramp

primary
#321783
secondary
#99B73F
accent
#ED3BC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321783

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

Preview Lab → · Contrast checker → · Palette generator →

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