#321781#321781

#321781 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.162 H 284.6°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#321781
RGBrgb(50, 23, 129)
HSLhsl(255, 70%, 30%)
HSVhsv(255, 82%, 51%)
CMYKcmyk(61.2%, 82.2%, 0%, 49.4%)
CIE-LABlab(19.54, 41.18, -54.33)
CIE-LCHlch(19.54, 68.17, 307.16°)
OKLaboklab(32.5% 0.0407 -0.1566)
OKLCHoklch(32.5% 0.162 284.6)
XYZxyz(5.5830, 2.8755, 21.0255)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321781 #668117
analogous
#173181 #321781 #671781
triadic
#321781 #813217 #178132
tetradic
#321781 #811731 #668117 #178167
square
#321781 #811731 #668117 #178167
split-complementary
#321781 #816717 #318117
monochromatic
#0A051A #1E0E4D #321781 #4620B5 #6137DB

Accessibility & contrast

On white

13.33
#321781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321781
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321781#FFFFFF#000000##FFFFFF
##3217811.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321781;
/* rgb */ color: rgb(50, 23, 129);
/* oklch */ color: oklch(32.5% 0.162 284.6);
Tailwind
colors: {
  custom: {
    50: '#7559a7',
    500: '#321781',
    950: '#000000',
  },
}
SCSS
$custom: #321781;
$custom-light: #7559a7;
$custom-dark: #000000;
JSON
{
  "hex": "#321781",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 255.283,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32501,
    "c": 0.16178,
    "h": 284.6
  },
  "luminance": 0.02876
}

Semantic roles & 50–950 ramp

primary
#321781
secondary
#97B53E
accent
#ED3BBF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321781

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

Preview Lab → · Contrast checker → · Palette generator →

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