#320C47#320C47

#320C47 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.105 H 310.3°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#320C47
RGBrgb(50, 12, 71)
HSLhsl(279, 71%, 16%)
HSVhsv(279, 83%, 28%)
CMYKcmyk(29.6%, 83.1%, 0%, 72.2%)
CIE-LABlab(11.93, 29.95, -28.34)
CIE-LCHlch(11.93, 41.24, 316.58°)
OKLaboklab(25.42% 0.068 -0.0803)
OKLCHoklch(25.42% 0.105 310.3)
XYZxyz(2.5840, 1.3960, 6.0934)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320C47 #21470C
analogous
#150C47 #320C47 #470C3F
triadic
#320C47 #47320C #0C4732
tetradic
#320C47 #47150C #21470C #0C3F47
square
#320C47 #47150C #21470C #0C3F47
split-complementary
#320C47 #3F470C #0C4715
monochromatic
#12041A #12041A #320C47 #57157B #7C1EB0

Accessibility & contrast

On white

16.42
#320C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #320C47
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320C47#FFFFFF#000000##FFFFFF
##320C471.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E49
Deuteranopia (green-blind)
#022046
Tritanopia (blue-blind)
#2F1A29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #320c47;
/* rgb */ color: rgb(50, 12, 71);
/* oklch */ color: oklch(25.4% 0.105 310.3);
Tailwind
colors: {
  custom: {
    50: '#6d4f7b',
    500: '#320c47',
    950: '#000000',
  },
}
SCSS
$custom: #320c47;
$custom-light: #6d4f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#320c47",
  "rgb": {
    "r": 50,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 278.644,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25419,
    "c": 0.10525,
    "h": 310.3
  },
  "luminance": 0.01396
}

Semantic roles & 50–950 ramp

primary
#320C47
secondary
#4B832C
accent
#EE3A7A
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #320C47

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

Preview Lab → · Contrast checker → · Palette generator →

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