#320D56#320D56

#320D56 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.9% C 0.121 H 301.4°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#320D56
RGBrgb(50, 13, 86)
HSLhsl(270, 74%, 19%)
HSVhsv(270, 85%, 34%)
CMYKcmyk(41.9%, 84.9%, 0%, 66.3%)
CIE-LABlab(13.46, 33.44, -36.18)
CIE-LCHlch(13.46, 49.26, 312.74°)
OKLaboklab(26.92% 0.063 -0.1033)
OKLCHoklch(26.92% 0.121 301.4)
XYZxyz(3.1386, 1.6378, 8.9531)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320D56 #31560D
analogous
#0E0D56 #320D56 #560D56
triadic
#320D56 #56320D #0D5632
tetradic
#320D56 #560E0D #31560D #0D5656
square
#320D56 #560E0D #31560D #0D5656
split-complementary
#320D56 #56560D #0D560E
monochromatic
#0F041B #130521 #320D56 #51158B #701DC0

Accessibility & contrast

On white

15.82
#320D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#320D56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320D56
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320D56#FFFFFF#000000##FFFFFF
##320D561.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#2A2131
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #320d56;
/* rgb */ color: rgb(50, 13, 86);
/* oklch */ color: oklch(26.9% 0.121 301.4);
Tailwind
colors: {
  custom: {
    50: '#6e5186',
    500: '#320d56',
    950: '#000000',
  },
}
SCSS
$custom: #320d56;
$custom-light: #6e5186;
$custom-dark: #000000;
JSON
{
  "hex": "#320d56",
  "rgb": {
    "r": 50,
    "g": 13,
    "b": 86
  },
  "hsl": {
    "h": 270.411,
    "s": 73.737,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26918,
    "c": 0.12105,
    "h": 301.4
  },
  "luminance": 0.01638
}

Semantic roles & 50–950 ramp

primary
#320D56
secondary
#5F912E
accent
#F03793
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #320D56

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

Preview Lab → · Contrast checker → · Palette generator →

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