#320C51#320C51

#320C51 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.3% C 0.117 H 304.2°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#320C51
RGBrgb(50, 12, 81)
HSLhsl(273, 74%, 18%)
HSVhsv(273, 85%, 32%)
CMYKcmyk(38.3%, 85.2%, 0%, 68.2%)
CIE-LABlab(12.83, 32.54, -33.80)
CIE-LCHlch(12.83, 46.92, 313.92°)
OKLaboklab(26.33% 0.0655 -0.0963)
OKLCHoklch(26.33% 0.117 304.2)
XYZxyz(2.9317, 1.5351, 7.9248)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320C51 #2B510C
analogous
#0F0C51 #320C51 #510C4D
triadic
#320C51 #51320C #0C5132
tetradic
#320C51 #510F0C #2B510C #0C4D51
square
#320C51 #510F0C #2B510C #0C4D51
split-complementary
#320C51 #4D510C #0C510F
monochromatic
#10041B #11041C #320C51 #531486 #741CBC

Accessibility & contrast

On white

16.07
#320C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#320C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320C51
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320C51#FFFFFF#000000##FFFFFF
##320C511.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002053
Deuteranopia (green-blind)
#002150
Tritanopia (blue-blind)
#2C1E2E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #320c51;
/* rgb */ color: rgb(50, 12, 81);
/* oklch */ color: oklch(26.3% 0.117 304.2);
Tailwind
colors: {
  custom: {
    50: '#6e5082',
    500: '#320c51',
    950: '#000000',
  },
}
SCSS
$custom: #320c51;
$custom-light: #6e5082;
$custom-dark: #000000;
JSON
{
  "hex": "#320c51",
  "rgb": {
    "r": 50,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 273.043,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26331,
    "c": 0.1165,
    "h": 304.2
  },
  "luminance": 0.01535
}

Semantic roles & 50–950 ramp

primary
#320C51
secondary
#588C2C
accent
#F1378A
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320C51

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

Preview Lab → · Contrast checker → · Palette generator →

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