#320B40#320B40

#320B40 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.7% C 0.099 H 315.4°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#320B40
RGBrgb(50, 11, 64)
HSLhsl(284, 71%, 15%)
HSVhsv(284, 83%, 25%)
CMYKcmyk(21.9%, 82.8%, 0%, 74.9%)
CIE-LABlab(11.19, 28.68, -24.62)
CIE-LCHlch(11.19, 37.80, 319.36°)
OKLaboklab(24.71% 0.0704 -0.0694)
OKLCHoklch(24.71% 0.099 315.4)
XYZxyz(2.3603, 1.2877, 4.9737)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320B40 #19400B
analogous
#180B40 #320B40 #400B34
triadic
#320B40 #40320B #0B4032
tetradic
#320B40 #40180B #19400B #0B3440
square
#320B40 #40180B #19400B #0B3440
split-complementary
#320B40 #34400B #0B4018
monochromatic
#14041A #14041A #320B40 #5B1474 #841DA8

Accessibility & contrast

On white

16.70
#320B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#320B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320B40
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320B40#FFFFFF#000000##FFFFFF
##320B401.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#0A1F3F
Tritanopia (blue-blind)
#311624
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #320b40;
/* rgb */ color: rgb(50, 11, 64);
/* oklch */ color: oklch(24.7% 0.099 315.4);
Tailwind
colors: {
  custom: {
    50: '#6c4e75',
    500: '#320b40',
    950: '#000000',
  },
}
SCSS
$custom: #320b40;
$custom-light: #6c4e75;
$custom-dark: #000000;
JSON
{
  "hex": "#320b40",
  "rgb": {
    "r": 50,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 284.151,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24709,
    "c": 0.09882,
    "h": 315.4
  },
  "luminance": 0.01288
}

Semantic roles & 50–950 ramp

primary
#320B40
secondary
#407D2A
accent
#ED3A6A
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #320B40

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

Preview Lab → · Contrast checker → · Palette generator →

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