#320F4C#320F4C

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

Color values

HEX#320F4C
RGBrgb(50, 15, 76)
HSLhsl(274, 67%, 18%)
HSVhsv(274, 80%, 30%)
CMYKcmyk(34.2%, 80.3%, 0%, 70.2%)
CIE-LABlab(12.87, 29.81, -30.29)
CIE-LCHlch(12.87, 42.50, 314.54°)
OKLaboklab(26.22% 0.0636 -0.0861)
OKLCHoklch(26.22% 0.107 306.5)
XYZxyz(2.7904, 1.5416, 6.9866)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320F4C #294C0F
analogous
#130F4C #320F4C #4C0F47
triadic
#320F4C #4C320F #0F4C32
tetradic
#320F4C #4C130F #294C0F #0F474C
square
#320F4C #4C130F #294C0F #0F474C
split-complementary
#320F4C #474C0F #0F4C13
monochromatic
#11051A #11051A #320F4C #54197F #7523B2

Accessibility & contrast

On white

16.05
#320F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #320F4C
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320F4C#FFFFFF#000000##FFFFFF
##320F4C1.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#00214B
Tritanopia (blue-blind)
#2D1D2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #320f4c;
/* rgb */ color: rgb(50, 15, 76);
/* oklch */ color: oklch(26.2% 0.107 306.5);
Tailwind
colors: {
  custom: {
    50: '#6d517e',
    500: '#320f4c',
    950: '#000000',
  },
}
SCSS
$custom: #320f4c;
$custom-light: #6d517e;
$custom-dark: #000000;
JSON
{
  "hex": "#320f4c",
  "rgb": {
    "r": 50,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 274.426,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26219,
    "c": 0.10704,
    "h": 306.5
  },
  "luminance": 0.01542
}

Semantic roles & 50–950 ramp

primary
#320F4C
secondary
#558631
accent
#EA3E87
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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