#320B4C#320B4C

#320B4C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.8% C 0.112 H 307.3°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#320B4C
RGBrgb(50, 11, 76)
HSLhsl(276, 75%, 17%)
HSVhsv(276, 86%, 30%)
CMYKcmyk(34.2%, 85.5%, 0%, 70.2%)
CIE-LABlab(12.22, 31.67, -31.35)
CIE-LCHlch(12.22, 44.57, 315.29°)
OKLaboklab(25.76% 0.0679 -0.0891)
OKLCHoklch(25.76% 0.112 307.3)
XYZxyz(2.7393, 1.4393, 6.9696)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320B4C #254C0B
analogous
#120B4C #320B4C #4C0B46
triadic
#320B4C #4C320B #0B4C32
tetradic
#320B4C #4C120B #254C0B #0B464C
square
#320B4C #4C120B #254C0B #0B464C
split-complementary
#320B4C #464C0B #0B4C12
monochromatic
#12041B #12041B #320B4C #551381 #781AB7

Accessibility & contrast

On white

16.31
#320B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#320B4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320B4C
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320B4C#FFFFFF#000000##FFFFFF
##320B4C1.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#2E1B2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #320b4c;
/* rgb */ color: rgb(50, 11, 76);
/* oklch */ color: oklch(25.8% 0.112 307.3);
Tailwind
colors: {
  custom: {
    50: '#6d4f7f',
    500: '#320b4c',
    950: '#000000',
  },
}
SCSS
$custom: #320b4c;
$custom-light: #6d4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#320b4c",
  "rgb": {
    "r": 50,
    "g": 11,
    "b": 76
  },
  "hsl": {
    "h": 276,
    "s": 74.713,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25758,
    "c": 0.11205,
    "h": 307.3
  },
  "luminance": 0.01439
}

Semantic roles & 50–950 ramp

primary
#320B4C
secondary
#50882B
accent
#F13681
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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