#320C46#320C46

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

Color values

HEX#320C46
RGBrgb(50, 12, 70)
HSLhsl(279, 71%, 16%)
HSVhsv(279, 83%, 27%)
CMYKcmyk(28.6%, 82.9%, 0%, 72.5%)
CIE-LABlab(11.85, 29.70, -27.78)
CIE-LCHlch(11.85, 40.67, 316.91°)
OKLaboklab(25.33% 0.0682 -0.0787)
OKLCHoklch(25.33% 0.104 310.9)
XYZxyz(2.5521, 1.3833, 5.9257)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320C46 #20460C
analogous
#150C46 #320C46 #460C3D
triadic
#320C46 #46320C #0C4632
tetradic
#320C46 #46150C #20460C #0C3D46
square
#320C46 #46150C #20460C #0C3D46
split-complementary
#320C46 #3D460C #0C4615
monochromatic
#13041A #13041A #320C46 #57157A #7D1EAE

Accessibility & contrast

On white

16.45
#320C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #320C46
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320C46#FFFFFF#000000##FFFFFF
##320C461.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #320c46;
/* rgb */ color: rgb(50, 12, 70);
/* oklch */ color: oklch(25.3% 0.104 310.9);
Tailwind
colors: {
  custom: {
    50: '#6d4f7a',
    500: '#320c46',
    950: '#000000',
  },
}
SCSS
$custom: #320c46;
$custom-light: #6d4f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#320c46",
  "rgb": {
    "r": 50,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 279.31,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25332,
    "c": 0.10413,
    "h": 310.9
  },
  "luminance": 0.01383
}

Semantic roles & 50–950 ramp

primary
#320C46
secondary
#4A822C
accent
#ED3A78
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #320C46

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

Preview Lab → · Contrast checker → · Palette generator →

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