#321051#321051

#321051 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.8% C 0.112 H 303.4°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#321051
RGBrgb(50, 16, 81)
HSLhsl(271, 67%, 19%)
HSVhsv(271, 80%, 32%)
CMYKcmyk(38.3%, 80.2%, 0%, 68.2%)
CIE-LABlab(13.49, 30.65, -32.72)
CIE-LCHlch(13.49, 44.84, 313.13°)
OKLaboklab(26.79% 0.0614 -0.0932)
OKLCHoklch(26.79% 0.112 303.4)
XYZxyz(2.9855, 1.6428, 7.9428)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321051 #2F5110
analogous
#121051 #321051 #511050
triadic
#321051 #513210 #105132
tetradic
#321051 #511210 #2F5110 #105051
square
#321051 #511210 #2F5110 #105051
split-complementary
#321051 #505110 #105112
monochromatic
#10051A #12061E #321051 #521A84 #7124B7

Accessibility & contrast

On white

15.81
#321051 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#321051 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321051
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321051#FFFFFF#000000##FFFFFF
##3210511.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#2C202F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #321051;
/* rgb */ color: rgb(50, 16, 81);
/* oklch */ color: oklch(26.8% 0.112 303.4);
Tailwind
colors: {
  custom: {
    50: '#6e5282',
    500: '#321051',
    950: '#000000',
  },
}
SCSS
$custom: #321051;
$custom-light: #6e5282;
$custom-dark: #000000;
JSON
{
  "hex": "#321051",
  "rgb": {
    "r": 50,
    "g": 16,
    "b": 81
  },
  "hsl": {
    "h": 271.385,
    "s": 67.01,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26794,
    "c": 0.11163,
    "h": 303.4
  },
  "luminance": 0.01643
}

Semantic roles & 50–950 ramp

primary
#321051
secondary
#5C8B32
accent
#EA3E90
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #321051

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

Preview Lab → · Contrast checker → · Palette generator →

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