#321156#321156

#321156 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.116 H 300.5°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#321156
RGBrgb(50, 17, 86)
HSLhsl(269, 67%, 20%)
HSVhsv(269, 80%, 34%)
CMYKcmyk(41.9%, 80.2%, 0%, 66.3%)
CIE-LABlab(14.12, 31.53, -35.10)
CIE-LCHlch(14.12, 47.18, 311.94°)
OKLaboklab(27.38% 0.0591 -0.1002)
OKLCHoklch(27.38% 0.116 300.5)
XYZxyz(3.1951, 1.7509, 8.9719)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321156 #355611
analogous
#111256 #321156 #541156
triadic
#321156 #563211 #115632
tetradic
#321156 #561112 #355611 #115654
square
#321156 #561112 #355611 #115654
split-complementary
#321156 #565411 #125611
monochromatic
#0F051A #140723 #321156 #501B89 #6D25BC

Accessibility & contrast

On white

15.55
#321156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321156
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321156#FFFFFF#000000##FFFFFF
##3211561.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#2A2332
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #321156;
/* rgb */ color: rgb(50, 17, 86);
/* oklch */ color: oklch(27.4% 0.116 300.5);
Tailwind
colors: {
  custom: {
    50: '#6e5386',
    500: '#321156',
    950: '#000000',
  },
}
SCSS
$custom: #321156;
$custom-light: #6e5386;
$custom-dark: #000000;
JSON
{
  "hex": "#321156",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 268.696,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27383,
    "c": 0.11634,
    "h": 300.5
  },
  "luminance": 0.01751
}

Semantic roles & 50–950 ramp

primary
#321156
secondary
#638F34
accent
#EA3E98
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #321156

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

Preview Lab → · Contrast checker → · Palette generator →

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