#321357#321357

#321357 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.115 H 299.6°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#321357
RGBrgb(50, 19, 87)
HSLhsl(267, 64%, 21%)
HSVhsv(267, 78%, 34%)
CMYKcmyk(42.5%, 78.2%, 0%, 65.9%)
CIE-LABlab(14.58, 30.78, -35.03)
CIE-LCHlch(14.58, 46.63, 311.31°)
OKLaboklab(27.74% 0.0567 -0.1)
OKLCHoklch(27.74% 0.115 299.6)
XYZxyz(3.2681, 1.8319, 9.1964)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321357 #385713
analogous
#131657 #321357 #541357
triadic
#321357 #573213 #135732
tetradic
#321357 #571316 #385713 #135754
square
#321357 #571316 #385713 #135754
split-complementary
#321357 #575413 #165713
monochromatic
#0E0519 #150825 #321357 #4F1E89 #6C29BB

Accessibility & contrast

On white

15.37
#321357 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#321357 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321357
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321357#FFFFFF#000000##FFFFFF
##3213571.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#292433
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321357;
/* rgb */ color: rgb(50, 19, 87);
/* oklch */ color: oklch(27.7% 0.115 299.6);
Tailwind
colors: {
  custom: {
    50: '#6e5487',
    500: '#321357',
    950: '#000000',
  },
}
SCSS
$custom: #321357;
$custom-light: #6e5487;
$custom-dark: #000000;
JSON
{
  "hex": "#321357",
  "rgb": {
    "r": 50,
    "g": 19,
    "b": 87
  },
  "hsl": {
    "h": 267.353,
    "s": 64.151,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27735,
    "c": 0.11498,
    "h": 299.6
  },
  "luminance": 0.01832
}

Semantic roles & 50–950 ramp

primary
#321357
secondary
#678F36
accent
#E7419B
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321357

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

Preview Lab → · Contrast checker → · Palette generator →

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