#321348#321348

#321348 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.096 H 308.0°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#321348
RGBrgb(50, 19, 72)
HSLhsl(275, 58%, 18%)
HSVhsv(275, 74%, 28%)
CMYKcmyk(30.6%, 73.6%, 0%, 71.8%)
CIE-LABlab(13.30, 26.59, -26.83)
CIE-LCHlch(13.30, 37.77, 314.75°)
OKLaboklab(26.42% 0.0593 -0.0759)
OKLCHoklch(26.42% 0.096 308)
XYZxyz(2.7177, 1.6118, 6.2976)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321348 #294813
analogous
#171348 #321348 #481343
triadic
#321348 #483213 #134832
tetradic
#321348 #481713 #294813 #134348
square
#321348 #481713 #294813 #134348
split-complementary
#321348 #434813 #134817
monochromatic
#110618 #110618 #321348 #542078 #752DA9

Accessibility & contrast

On white

15.88
#321348 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#321348 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321348
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321348#FFFFFF#000000##FFFFFF
##3213481.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214A
Deuteranopia (green-blind)
#082247
Tritanopia (blue-blind)
#2F1E2B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #321348;
/* rgb */ color: rgb(50, 19, 72);
/* oklch */ color: oklch(26.4% 0.096 308.0);
Tailwind
colors: {
  custom: {
    50: '#6c537b',
    500: '#321348',
    950: '#000000',
  },
}
SCSS
$custom: #321348;
$custom-light: #6c537b;
$custom-dark: #000000;
JSON
{
  "hex": "#321348",
  "rgb": {
    "r": 50,
    "g": 19,
    "b": 72
  },
  "hsl": {
    "h": 275.094,
    "s": 58.242,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26422,
    "c": 0.0963,
    "h": 308
  },
  "luminance": 0.01612
}

Semantic roles & 50–950 ramp

primary
#321348
secondary
#558136
accent
#E14687
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #321348

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

Preview Lab → · Contrast checker → · Palette generator →

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