#321165#321165

#321165 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.134 H 294.0°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#321165
RGBrgb(50, 17, 101)
HSLhsl(264, 71%, 23%)
HSVhsv(264, 83%, 40%)
CMYKcmyk(50.5%, 83.2%, 0%, 60.4%)
CIE-LABlab(15.58, 35.79, -42.74)
CIE-LCHlch(15.58, 55.74, 309.94°)
OKLaboklab(28.86% 0.0546 -0.1226)
OKLCHoklch(28.86% 0.134 294)
XYZxyz(3.8642, 2.0185, 12.4954)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321165 #446511
analogous
#111A65 #321165 #5C1165
triadic
#321165 #653211 #116532
tetradic
#321165 #65111A #446511 #11655C
square
#321165 #65111A #446511 #11655C
split-complementary
#321165 #655C11 #1A6511
monochromatic
#0D041A #180831 #321165 #4C1A99 #6623CE

Accessibility & contrast

On white

14.96
#321165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#321165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321165
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321165#FFFFFF#000000##FFFFFF
##3211651.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002867
Deuteranopia (green-blind)
#002563
Tritanopia (blue-blind)
#22293B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321165;
/* rgb */ color: rgb(50, 17, 101);
/* oklch */ color: oklch(28.9% 0.134 294.0);
Tailwind
colors: {
  custom: {
    50: '#705492',
    500: '#321165',
    950: '#000000',
  },
}
SCSS
$custom: #321165;
$custom-light: #705492;
$custom-dark: #000000;
JSON
{
  "hex": "#321165",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 263.571,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28858,
    "c": 0.13424,
    "h": 294
  },
  "luminance": 0.02019
}

Semantic roles & 50–950 ramp

primary
#321165
secondary
#749D35
accent
#EE3AA7
background
#F7F4F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #321165

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

Preview Lab → · Contrast checker → · Palette generator →

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