#321155#321155

#321155 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.3% C 0.115 H 301.0°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#321155
RGBrgb(50, 17, 85)
HSLhsl(269, 67%, 20%)
HSVhsv(269, 80%, 33%)
CMYKcmyk(41.2%, 80%, 0%, 66.7%)
CIE-LABlab(14.03, 31.25, -34.57)
CIE-LCHlch(14.03, 46.60, 312.12°)
OKLaboklab(27.29% 0.0594 -0.0986)
OKLCHoklch(27.29% 0.115 301)
XYZxyz(3.1551, 1.7349, 8.7612)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321155 #345511
analogous
#111255 #321155 #541155
triadic
#321155 #553211 #115532
tetradic
#321155 #551112 #345511 #115554
square
#321155 #551112 #345511 #115554
split-complementary
#321155 #555411 #125511
monochromatic
#0F051A #140722 #321155 #501B88 #6E25BB

Accessibility & contrast

On white

15.59
#321155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321155
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321155#FFFFFF#000000##FFFFFF
##3211551.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002357
Deuteranopia (green-blind)
#002354
Tritanopia (blue-blind)
#2A2232
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #321155;
/* rgb */ color: rgb(50, 17, 85);
/* oklch */ color: oklch(27.3% 0.115 301.0);
Tailwind
colors: {
  custom: {
    50: '#6e5385',
    500: '#321155',
    950: '#000000',
  },
}
SCSS
$custom: #321155;
$custom-light: #6e5385;
$custom-dark: #000000;
JSON
{
  "hex": "#321155",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 85
  },
  "hsl": {
    "h": 269.118,
    "s": 66.667,
    "l": 20
  },
  "oklch": {
    "l": 0.2729,
    "c": 0.11514,
    "h": 301
  },
  "luminance": 0.01735
}

Semantic roles & 50–950 ramp

primary
#321155
secondary
#628E34
accent
#EA3E96
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #321155

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

Preview Lab → · Contrast checker → · Palette generator →

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