#320F4D#320F4D

#320F4D is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.108 H 305.9°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#320F4D
RGBrgb(50, 15, 77)
HSLhsl(274, 67%, 18%)
HSVhsv(274, 81%, 30%)
CMYKcmyk(35.1%, 80.5%, 0%, 69.8%)
CIE-LABlab(12.96, 30.07, -30.84)
CIE-LCHlch(12.96, 43.08, 314.28°)
OKLaboklab(26.31% 0.0634 -0.0877)
OKLCHoklch(26.31% 0.108 305.9)
XYZxyz(2.8255, 1.5556, 7.1712)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320F4D #2A4D0F
analogous
#130F4D #320F4D #4D0F49
triadic
#320F4D #4D320F #0F4D32
tetradic
#320F4D #4D130F #2A4D0F #0F494D
square
#320F4D #4D130F #2A4D0F #0F494D
split-complementary
#320F4D #494D0F #0F4D13
monochromatic
#11051A #11051A #320F4D #531980 #7523B3

Accessibility & contrast

On white

16.02
#320F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #320F4D
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320F4D#FFFFFF#000000##FFFFFF
##320F4D1.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#00224C
Tritanopia (blue-blind)
#2D1E2D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #320f4d;
/* rgb */ color: rgb(50, 15, 77);
/* oklch */ color: oklch(26.3% 0.108 305.9);
Tailwind
colors: {
  custom: {
    50: '#6d517f',
    500: '#320f4d',
    950: '#000000',
  },
}
SCSS
$custom: #320f4d;
$custom-light: #6d517f;
$custom-dark: #000000;
JSON
{
  "hex": "#320f4d",
  "rgb": {
    "r": 50,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 273.871,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26308,
    "c": 0.10821,
    "h": 305.9
  },
  "luminance": 0.01556
}

Semantic roles & 50–950 ramp

primary
#320F4D
secondary
#568731
accent
#EA3E89
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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