#321856#321856

#321856 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.107 H 298.6°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#321856
RGBrgb(50, 24, 86)
HSLhsl(265, 56%, 22%)
HSVhsv(265, 72%, 34%)
CMYKcmyk(41.9%, 72.1%, 0%, 66.3%)
CIE-LABlab(15.50, 27.67, -32.85)
CIE-LCHlch(15.50, 42.95, 310.11°)
OKLaboklab(28.37% 0.0511 -0.0936)
OKLCHoklch(28.37% 0.107 298.6)
XYZxyz(3.3213, 2.0032, 9.0140)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321856 #3C5618
analogous
#181D56 #321856 #511856
triadic
#321856 #563218 #185632
tetradic
#321856 #56181D #3C5618 #185651
square
#321856 #56181D #3C5618 #185651
split-complementary
#321856 #565118 #1D5618
monochromatic
#0E0718 #160B26 #321856 #4E2586 #6A33B6

Accessibility & contrast

On white

14.99
#321856 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#321856 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321856
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321856#FFFFFF#000000##FFFFFF
##3218561.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321856;
/* rgb */ color: rgb(50, 24, 86);
/* oklch */ color: oklch(28.4% 0.107 298.6);
Tailwind
colors: {
  custom: {
    50: '#6d5786',
    500: '#321856',
    950: '#000000',
  },
}
SCSS
$custom: #321856;
$custom-light: #6d5786;
$custom-dark: #000000;
JSON
{
  "hex": "#321856",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 86
  },
  "hsl": {
    "h": 265.161,
    "s": 56.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28368,
    "c": 0.10664,
    "h": 298.6
  },
  "luminance": 0.02003
}

Semantic roles & 50–950 ramp

primary
#321856
secondary
#6B8D3D
accent
#E048A0
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321856

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

Preview Lab → · Contrast checker → · Palette generator →

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