#321756#321756

#321756 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.108 H 298.9°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#321756
RGBrgb(50, 23, 86)
HSLhsl(266, 58%, 21%)
HSVhsv(266, 73%, 34%)
CMYKcmyk(41.9%, 73.3%, 0%, 66.3%)
CIE-LABlab(15.29, 28.26, -33.20)
CIE-LCHlch(15.29, 43.60, 310.41°)
OKLaboklab(28.21% 0.0523 -0.0946)
OKLCHoklch(28.21% 0.108 298.9)
XYZxyz(3.3011, 1.9627, 9.0072)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321756 #3B5617
analogous
#171C56 #321756 #521756
triadic
#321756 #563217 #175632
tetradic
#321756 #56171C #3B5617 #175652
square
#321756 #56171C #3B5617 #175652
split-complementary
#321756 #565217 #1C5617
monochromatic
#0E0618 #160A26 #321756 #4E2486 #6A31B7

Accessibility & contrast

On white

15.08
#321756 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#321756 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321756
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321756#FFFFFF#000000##FFFFFF
##3217561.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#002655
Tritanopia (blue-blind)
#2A2634
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321756;
/* rgb */ color: rgb(50, 23, 86);
/* oklch */ color: oklch(28.2% 0.108 298.9);
Tailwind
colors: {
  custom: {
    50: '#6e5686',
    500: '#321756',
    950: '#000000',
  },
}
SCSS
$custom: #321756;
$custom-light: #6e5686;
$custom-dark: #000000;
JSON
{
  "hex": "#321756",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 86
  },
  "hsl": {
    "h": 265.714,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28214,
    "c": 0.10813,
    "h": 298.9
  },
  "luminance": 0.01963
}

Semantic roles & 50–950 ramp

primary
#321756
secondary
#6A8D3C
accent
#E1479F
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321756

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

Preview Lab → · Contrast checker → · Palette generator →

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