#320B47#320B47

#320B47 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.107 H 310.5°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#320B47
RGBrgb(50, 11, 71)
HSLhsl(279, 73%, 16%)
HSVhsv(279, 85%, 28%)
CMYKcmyk(29.6%, 84.5%, 0%, 72.2%)
CIE-LABlab(11.77, 30.41, -28.60)
CIE-LCHlch(11.77, 41.74, 316.75°)
OKLaboklab(25.31% 0.0691 -0.0811)
OKLCHoklch(25.31% 0.107 310.5)
XYZxyz(2.5722, 1.3724, 6.0894)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320B47 #20470B
analogous
#140B47 #320B47 #470B3E
triadic
#320B47 #47320B #0B4732
tetradic
#320B47 #47140B #20470B #0B3E47
square
#320B47 #47140B #20470B #0B3E47
split-complementary
#320B47 #3E470B #0B4714
monochromatic
#13041A #13041A #320B47 #57137C #7D1BB1

Accessibility & contrast

On white

16.48
#320B47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#320B47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320B47
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320B47#FFFFFF#000000##FFFFFF
##320B471.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D49
Deuteranopia (green-blind)
#012046
Tritanopia (blue-blind)
#2F1928
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #320b47;
/* rgb */ color: rgb(50, 11, 71);
/* oklch */ color: oklch(25.3% 0.107 310.5);
Tailwind
colors: {
  custom: {
    50: '#6d4f7b',
    500: '#320b47',
    950: '#000000',
  },
}
SCSS
$custom: #320b47;
$custom-light: #6d4f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#320b47",
  "rgb": {
    "r": 50,
    "g": 11,
    "b": 71
  },
  "hsl": {
    "h": 279,
    "s": 73.171,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25307,
    "c": 0.10652,
    "h": 310.5
  },
  "luminance": 0.01372
}

Semantic roles & 50–950 ramp

primary
#320B47
secondary
#4A832A
accent
#F03878
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #320B47

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

Preview Lab → · Contrast checker → · Palette generator →

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