#320B4A#320B4A

#320B4A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.110 H 308.5°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#320B4A
RGBrgb(50, 11, 74)
HSLhsl(277, 74%, 17%)
HSVhsv(277, 85%, 29%)
CMYKcmyk(32.4%, 85.1%, 0%, 71%)
CIE-LABlab(12.04, 31.16, -30.26)
CIE-LCHlch(12.04, 43.44, 315.84°)
OKLaboklab(25.58% 0.0684 -0.0859)
OKLCHoklch(25.58% 0.11 308.5)
XYZxyz(2.6708, 1.4119, 6.6091)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320B4A #234A0B
analogous
#130B4A #320B4A #4A0B43
triadic
#320B4A #4A320B #0B4A32
tetradic
#320B4A #4A130B #234A0B #0B434A
square
#320B4A #4A130B #234A0B #0B434A
split-complementary
#320B4A #434A0B #0B4A13
monochromatic
#12041B #12041B #320B4A #56137F #7A1BB5

Accessibility & contrast

On white

16.38
#320B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#320B4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320B4A
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320B4A#FFFFFF#000000##FFFFFF
##320B4A1.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#2E1B2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #320b4a;
/* rgb */ color: rgb(50, 11, 74);
/* oklch */ color: oklch(25.6% 0.110 308.5);
Tailwind
colors: {
  custom: {
    50: '#6d4f7d',
    500: '#320b4a',
    950: '#000000',
  },
}
SCSS
$custom: #320b4a;
$custom-light: #6d4f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#320b4a",
  "rgb": {
    "r": 50,
    "g": 11,
    "b": 74
  },
  "hsl": {
    "h": 277.143,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25575,
    "c": 0.10984,
    "h": 308.5
  },
  "luminance": 0.01412
}

Semantic roles & 50–950 ramp

primary
#320B4A
secondary
#4D862B
accent
#F1377E
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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