#321351#321351

#321351 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.108 H 302.6°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#321351
RGBrgb(50, 19, 81)
HSLhsl(270, 62%, 20%)
HSVhsv(270, 77%, 32%)
CMYKcmyk(38.3%, 76.5%, 0%, 68.2%)
CIE-LABlab(14.05, 29.08, -31.82)
CIE-LCHlch(14.05, 43.11, 312.43°)
OKLaboklab(27.19% 0.058 -0.0906)
OKLCHoklch(27.19% 0.108 302.6)
XYZxyz(3.0331, 1.7379, 7.9586)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321351 #325113
analogous
#131351 #321351 #511351
triadic
#321351 #513213 #135132
tetradic
#321351 #511313 #325113 #135151
square
#321351 #511313 #325113 #135151
split-complementary
#321351 #515113 #135113
monochromatic
#0F0619 #13071F #321351 #511F83 #6F2AB4

Accessibility & contrast

On white

15.58
#321351 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#321351 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321351
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321351#FFFFFF#000000##FFFFFF
##3213511.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002353
Deuteranopia (green-blind)
#002350
Tritanopia (blue-blind)
#2C2230
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #321351;
/* rgb */ color: rgb(50, 19, 81);
/* oklch */ color: oklch(27.2% 0.108 302.6);
Tailwind
colors: {
  custom: {
    50: '#6d5382',
    500: '#321351',
    950: '#000000',
  },
}
SCSS
$custom: #321351;
$custom-light: #6d5382;
$custom-dark: #000000;
JSON
{
  "hex": "#321351",
  "rgb": {
    "r": 50,
    "g": 19,
    "b": 81
  },
  "hsl": {
    "h": 270,
    "s": 62,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27191,
    "c": 0.10754,
    "h": 302.6
  },
  "luminance": 0.01738
}

Semantic roles & 50–950 ramp

primary
#321351
secondary
#608A36
accent
#E54394
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321351

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

Preview Lab → · Contrast checker → · Palette generator →

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