#320B56#320B56

#320B56 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.7% C 0.123 H 301.7°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#320B56
RGBrgb(50, 11, 86)
HSLhsl(271, 77%, 19%)
HSVhsv(271, 87%, 34%)
CMYKcmyk(41.9%, 87.2%, 0%, 66.3%)
CIE-LABlab(13.16, 34.29, -36.66)
CIE-LCHlch(13.16, 50.20, 313.09°)
OKLaboklab(26.71% 0.0648 -0.1047)
OKLCHoklch(26.71% 0.123 301.7)
XYZxyz(3.1144, 1.5893, 8.9450)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320B56 #2F560B
analogous
#0D0B56 #320B56 #560B55
triadic
#320B56 #56320B #0B5632
tetradic
#320B56 #560D0B #2F560B #0B5556
square
#320B56 #560D0B #2F560B #0B5556
split-complementary
#320B56 #55560B #0B560D
monochromatic
#10031B #120420 #320B56 #52128C #7119C3

Accessibility & contrast

On white

15.94
#320B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#320B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320B56
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320B56#FFFFFF#000000##FFFFFF
##320B561.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002158
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#2A2031
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #320b56;
/* rgb */ color: rgb(50, 11, 86);
/* oklch */ color: oklch(26.7% 0.123 301.7);
Tailwind
colors: {
  custom: {
    50: '#6f5086',
    500: '#320b56',
    950: '#000000',
  },
}
SCSS
$custom: #320b56;
$custom-light: #6f5086;
$custom-dark: #000000;
JSON
{
  "hex": "#320b56",
  "rgb": {
    "r": 50,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 271.2,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26714,
    "c": 0.12316,
    "h": 301.7
  },
  "luminance": 0.01589
}

Semantic roles & 50–950 ramp

primary
#320B56
secondary
#5C912B
accent
#F43490
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #320B56

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

Preview Lab → · Contrast checker → · Palette generator →

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