#320C4D#320C4D

#320C4D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.112 H 306.5°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#320C4D
RGBrgb(50, 12, 77)
HSLhsl(275, 73%, 17%)
HSVhsv(275, 84%, 30%)
CMYKcmyk(35.1%, 84.4%, 0%, 69.8%)
CIE-LABlab(12.46, 31.49, -31.65)
CIE-LCHlch(12.46, 44.65, 314.86°)
OKLaboklab(25.96% 0.0666 -0.09)
OKLCHoklch(25.96% 0.112 306.5)
XYZxyz(2.7861, 1.4769, 7.1580)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320C4D #274D0C
analogous
#110C4D #320C4D #4D0C48
triadic
#320C4D #4D320C #0C4D32
tetradic
#320C4D #4D110C #274D0C #0C484D
square
#320C4D #4D110C #274D0C #0C484D
split-complementary
#320C4D #484D0C #0C4D11
monochromatic
#11041A #11041A #320C4D #541482 #771DB7

Accessibility & contrast

On white

16.21
#320C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#320C4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320C4D
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320C4D#FFFFFF#000000##FFFFFF
##320C4D1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#00214C
Tritanopia (blue-blind)
#2D1C2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #320c4d;
/* rgb */ color: rgb(50, 12, 77);
/* oklch */ color: oklch(26.0% 0.112 306.5);
Tailwind
colors: {
  custom: {
    50: '#6d507f',
    500: '#320c4d',
    950: '#000000',
  },
}
SCSS
$custom: #320c4d;
$custom-light: #6d507f;
$custom-dark: #000000;
JSON
{
  "hex": "#320c4d",
  "rgb": {
    "r": 50,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 275.077,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25958,
    "c": 0.112,
    "h": 306.5
  },
  "luminance": 0.01477
}

Semantic roles & 50–950 ramp

primary
#320C4D
secondary
#53892C
accent
#F03884
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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