#320F5E#320F5E

#320F5E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.128 H 297.3°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#320F5E
RGBrgb(50, 15, 94)
HSLhsl(267, 72%, 21%)
HSVhsv(267, 84%, 37%)
CMYKcmyk(46.8%, 84%, 0%, 63.1%)
CIE-LABlab(14.56, 34.73, -39.77)
CIE-LCHlch(14.56, 52.80, 311.13°)
OKLaboklab(27.93% 0.0587 -0.1139)
OKLCHoklch(27.93% 0.128 297.3)
XYZxyz(3.5061, 1.8278, 10.7556)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320F5E #3B5E0F
analogous
#0F145E #320F5E #5A0F5E
triadic
#320F5E #5E320F #0F5E32
tetradic
#320F5E #5E0F14 #3B5E0F #0F5E5A
square
#320F5E #5E0F14 #3B5E0F #0F5E5A
split-complementary
#320F5E #5E5A0F #145E0F
monochromatic
#0E041A #160729 #320F5E #4E1793 #6A20C8

Accessibility & contrast

On white

15.38
#320F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#320F5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320F5E
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320F5E#FFFFFF#000000##FFFFFF
##320F5E1.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#00245D
Tritanopia (blue-blind)
#262536
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #320f5e;
/* rgb */ color: rgb(50, 15, 94);
/* oklch */ color: oklch(27.9% 0.128 297.3);
Tailwind
colors: {
  custom: {
    50: '#6f528c',
    500: '#320f5e',
    950: '#000000',
  },
}
SCSS
$custom: #320f5e;
$custom-light: #6f528c;
$custom-dark: #000000;
JSON
{
  "hex": "#320f5e",
  "rgb": {
    "r": 50,
    "g": 15,
    "b": 94
  },
  "hsl": {
    "h": 266.582,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27926,
    "c": 0.12812,
    "h": 297.3
  },
  "luminance": 0.01828
}

Semantic roles & 50–950 ramp

primary
#320F5E
secondary
#6A9731
accent
#EF399E
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #320F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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