#320D4C#320D4C

#320D4C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.110 H 306.9°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#320D4C
RGBrgb(50, 13, 76)
HSLhsl(275, 71%, 17%)
HSVhsv(275, 83%, 30%)
CMYKcmyk(34.2%, 82.9%, 0%, 70.2%)
CIE-LABlab(12.53, 30.77, -30.84)
CIE-LCHlch(12.53, 43.57, 314.93°)
OKLaboklab(25.98% 0.0658 -0.0877)
OKLCHoklch(25.98% 0.11 306.9)
XYZxyz(2.7635, 1.4878, 6.9777)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320D4C #274C0D
analogous
#120D4C #320D4C #4C0D47
triadic
#320D4C #4C320D #0D4C32
tetradic
#320D4C #4C120D #274C0D #0D474C
square
#320D4C #4C120D #274C0D #0D474C
split-complementary
#320D4C #474C0D #0D4C12
monochromatic
#11041A #11041A #320D4C #541680 #771FB5

Accessibility & contrast

On white

16.18
#320D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#320D4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320D4C
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320D4C#FFFFFF#000000##FFFFFF
##320D4C1.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#00214B
Tritanopia (blue-blind)
#2E1C2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #320d4c;
/* rgb */ color: rgb(50, 13, 76);
/* oklch */ color: oklch(26.0% 0.110 306.9);
Tailwind
colors: {
  custom: {
    50: '#6d507f',
    500: '#320d4c',
    950: '#000000',
  },
}
SCSS
$custom: #320d4c;
$custom-light: #6d507f;
$custom-dark: #000000;
JSON
{
  "hex": "#320d4c",
  "rgb": {
    "r": 50,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 275.238,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25978,
    "c": 0.10963,
    "h": 306.9
  },
  "luminance": 0.01488
}

Semantic roles & 50–950 ramp

primary
#320D4C
secondary
#53872E
accent
#EE3A84
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320D4C

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

Preview Lab → · Contrast checker → · Palette generator →

#320D4C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva