#321768#321768

#321768 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.131 H 291.6°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#321768
RGBrgb(50, 23, 104)
HSLhsl(260, 64%, 25%)
HSVhsv(260, 78%, 41%)
CMYKcmyk(51.9%, 77.9%, 0%, 59.2%)
CIE-LABlab(16.94, 33.65, -42.48)
CIE-LCHlch(16.94, 54.19, 308.38°)
OKLaboklab(29.9% 0.0484 -0.1219)
OKLCHoklch(29.9% 0.131 291.6)
XYZxyz(4.1198, 2.2902, 13.3190)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321768 #4D6817
analogous
#172468 #321768 #5B1768
triadic
#321768 #683217 #176832
tetradic
#321768 #681724 #4D6817 #17685B
square
#321768 #681724 #4D6817 #17685B
split-complementary
#321768 #685B17 #246817
monochromatic
#0C0619 #1A0C36 #321768 #4A229A #622DCC

Accessibility & contrast

On white

14.40
#321768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#321768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321768
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321768#FFFFFF#000000##FFFFFF
##3217681.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#202D3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321768;
/* rgb */ color: rgb(50, 23, 104);
/* oklch */ color: oklch(29.9% 0.131 291.6);
Tailwind
colors: {
  custom: {
    50: '#705794',
    500: '#321768',
    950: '#000000',
  },
}
SCSS
$custom: #321768;
$custom-light: #705794;
$custom-dark: #000000;
JSON
{
  "hex": "#321768",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 260,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29901,
    "c": 0.13118,
    "h": 291.6
  },
  "luminance": 0.0229
}

Semantic roles & 50–950 ramp

primary
#321768
secondary
#7E9E3D
accent
#E741B0
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #321768

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

Preview Lab → · Contrast checker → · Palette generator →

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