#321672#321672

#321672 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.145 H 288.7°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#321672
RGBrgb(50, 22, 114)
HSLhsl(258, 68%, 27%)
HSVhsv(258, 81%, 45%)
CMYKcmyk(56.1%, 80.7%, 0%, 55.3%)
CIE-LABlab(17.77, 37.17, -47.65)
CIE-LCHlch(17.77, 60.43, 307.96°)
OKLaboklab(30.79% 0.0463 -0.137)
OKLCHoklch(30.79% 0.145 288.7)
XYZxyz(4.6387, 2.4666, 16.1480)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321672 #567216
analogous
#162872 #321672 #601672
triadic
#321672 #723216 #167232
tetradic
#321672 #721628 #567216 #167260
square
#321672 #721628 #567216 #167260
split-complementary
#321672 #726016 #287216
monochromatic
#0B051A #1C0C3F #321672 #4920A5 #602CD6

Accessibility & contrast

On white

14.06
#321672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#321672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321672
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321672#FFFFFF#000000##FFFFFF
##3216721.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#183043
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321672;
/* rgb */ color: rgb(50, 22, 114);
/* oklch */ color: oklch(30.8% 0.145 288.7);
Tailwind
colors: {
  custom: {
    50: '#72579b',
    500: '#321672',
    950: '#000000',
  },
}
SCSS
$custom: #321672;
$custom-light: #72579b;
$custom-dark: #000000;
JSON
{
  "hex": "#321672",
  "rgb": {
    "r": 50,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 258.261,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30787,
    "c": 0.14466,
    "h": 288.7
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#321672
secondary
#87A83C
accent
#EB3DB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321672

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

Preview Lab → · Contrast checker → · Palette generator →

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