#321054#321054

#321054 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.115 H 301.8°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#321054
RGBrgb(50, 16, 84)
HSLhsl(270, 68%, 20%)
HSVhsv(270, 81%, 33%)
CMYKcmyk(40.5%, 81%, 0%, 67.1%)
CIE-LABlab(13.76, 31.48, -34.33)
CIE-LCHlch(13.76, 46.58, 312.52°)
OKLaboklab(27.07% 0.0607 -0.0979)
OKLCHoklch(27.07% 0.115 301.8)
XYZxyz(3.1005, 1.6888, 8.5484)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321054 #325410
analogous
#101054 #321054 #541054
triadic
#321054 #543210 #105432
tetradic
#321054 #541010 #325410 #105454
square
#321054 #541010 #325410 #105454
split-complementary
#321054 #545410 #105410
monochromatic
#0F051A #130621 #321054 #511A87 #6F24BB

Accessibility & contrast

On white

15.70
#321054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#321054 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321054
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321054#FFFFFF#000000##FFFFFF
##3210541.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#002353
Tritanopia (blue-blind)
#2B2131
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #321054;
/* rgb */ color: rgb(50, 16, 84);
/* oklch */ color: oklch(27.1% 0.115 301.8);
Tailwind
colors: {
  custom: {
    50: '#6e5285',
    500: '#321054',
    950: '#000000',
  },
}
SCSS
$custom: #321054;
$custom-light: #6e5285;
$custom-dark: #000000;
JSON
{
  "hex": "#321054",
  "rgb": {
    "r": 50,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 270,
    "s": 68,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27072,
    "c": 0.1152,
    "h": 301.8
  },
  "luminance": 0.01689
}

Semantic roles & 50–950 ramp

primary
#321054
secondary
#608E32
accent
#EB3D94
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #321054

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

Preview Lab → · Contrast checker → · Palette generator →

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