#321168#321168

#321168 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.138 H 292.9°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#321168
RGBrgb(50, 17, 104)
HSLhsl(263, 72%, 24%)
HSVhsv(263, 84%, 41%)
CMYKcmyk(51.9%, 83.7%, 0%, 59.2%)
CIE-LABlab(15.89, 36.65, -44.21)
CIE-LCHlch(15.89, 57.42, 309.66°)
OKLaboklab(29.17% 0.0536 -0.1269)
OKLCHoklch(29.17% 0.138 292.9)
XYZxyz(4.0138, 2.0783, 13.2837)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321168 #476811
analogous
#111B68 #321168 #5D1168
triadic
#321168 #683211 #116832
tetradic
#321168 #68111B #476811 #11685D
square
#321168 #68111B #476811 #11685D
split-complementary
#321168 #685D11 #1B6811
monochromatic
#0D041A #190833 #321168 #4B1A9D #6522D1

Accessibility & contrast

On white

14.83
#321168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#321168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321168
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321168#FFFFFF#000000##FFFFFF
##3211681.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#212A3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321168;
/* rgb */ color: rgb(50, 17, 104);
/* oklch */ color: oklch(29.2% 0.138 292.9);
Tailwind
colors: {
  custom: {
    50: '#715494',
    500: '#321168',
    950: '#000000',
  },
}
SCSS
$custom: #321168;
$custom-light: #715494;
$custom-dark: #000000;
JSON
{
  "hex": "#321168",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 262.759,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29167,
    "c": 0.13777,
    "h": 292.9
  },
  "luminance": 0.02078
}

Semantic roles & 50–950 ramp

primary
#321168
secondary
#77A035
accent
#EF39AA
background
#F7F5F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #321168

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

Preview Lab → · Contrast checker → · Palette generator →

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