#321057#321057

#321057 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.4% C 0.119 H 300.3°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#321057
RGBrgb(50, 16, 87)
HSLhsl(269, 69%, 20%)
HSVhsv(269, 82%, 34%)
CMYKcmyk(42.5%, 81.6%, 0%, 65.9%)
CIE-LABlab(14.04, 32.31, -35.91)
CIE-LCHlch(14.04, 48.30, 311.98°)
OKLaboklab(27.36% 0.0599 -0.1026)
OKLCHoklch(27.36% 0.119 300.3)
XYZxyz(3.2206, 1.7368, 9.1805)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321057 #355710
analogous
#101257 #321057 #551057
triadic
#321057 #573210 #105732
tetradic
#321057 #571012 #355710 #105755
square
#321057 #571012 #355710 #105755
split-complementary
#321057 #575510 #125710
monochromatic
#0F051A #140623 #321057 #501A8B #6D23BE

Accessibility & contrast

On white

15.59
#321057 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321057
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321057#FFFFFF#000000##FFFFFF
##3210571.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#292233
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #321057;
/* rgb */ color: rgb(50, 16, 87);
/* oklch */ color: oklch(27.4% 0.119 300.3);
Tailwind
colors: {
  custom: {
    50: '#6e5287',
    500: '#321057',
    950: '#000000',
  },
}
SCSS
$custom: #321057;
$custom-light: #6e5287;
$custom-dark: #000000;
JSON
{
  "hex": "#321057",
  "rgb": {
    "r": 50,
    "g": 16,
    "b": 87
  },
  "hsl": {
    "h": 268.732,
    "s": 68.932,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27355,
    "c": 0.11876,
    "h": 300.3
  },
  "luminance": 0.01737
}

Semantic roles & 50–950 ramp

primary
#321057
secondary
#639032
accent
#EC3C98
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #321057

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

Preview Lab → · Contrast checker → · Palette generator →

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