#320A4C#320A4C

#320A4C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.113 H 307.5°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#320A4C
RGBrgb(50, 10, 76)
HSLhsl(276, 77%, 17%)
HSVhsv(276, 87%, 30%)
CMYKcmyk(34.2%, 86.8%, 0%, 70.2%)
CIE-LABlab(12.07, 32.10, -31.59)
CIE-LCHlch(12.07, 45.04, 315.45°)
OKLaboklab(25.66% 0.0688 -0.0898)
OKLCHoklch(25.66% 0.113 307.5)
XYZxyz(2.7282, 1.4170, 6.9659)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320A4C #244C0A
analogous
#110A4C #320A4C #4C0A45
triadic
#320A4C #4C320A #0A4C32
tetradic
#320A4C #4C110A #244C0A #0A454C
square
#320A4C #4C110A #244C0A #0A454C
split-complementary
#320A4C #454C0A #0A4C11
monochromatic
#12041B #12041B #320A4C #561182 #7918B8

Accessibility & contrast

On white

16.36
#320A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #320A4C
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320A4C#FFFFFF#000000##FFFFFF
##320A4C1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#2E1B2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #320a4c;
/* rgb */ color: rgb(50, 10, 76);
/* oklch */ color: oklch(25.7% 0.113 307.5);
Tailwind
colors: {
  custom: {
    50: '#6d4f7f',
    500: '#320a4c',
    950: '#000000',
  },
}
SCSS
$custom: #320a4c;
$custom-light: #6d4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#320a4c",
  "rgb": {
    "r": 50,
    "g": 10,
    "b": 76
  },
  "hsl": {
    "h": 276.364,
    "s": 76.744,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25656,
    "c": 0.11319,
    "h": 307.5
  },
  "luminance": 0.01417
}

Semantic roles & 50–950 ramp

primary
#320A4C
secondary
#4F8929
accent
#F33580
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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