#320F5F#320F5F

#320F5F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.0% C 0.129 H 296.8°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#320F5F
RGBrgb(50, 15, 95)
HSLhsl(266, 73%, 22%)
HSVhsv(266, 84%, 37%)
CMYKcmyk(47.4%, 84.2%, 0%, 62.7%)
CIE-LABlab(14.66, 35.01, -40.27)
CIE-LCHlch(14.66, 53.36, 311.00°)
OKLaboklab(28.03% 0.0583 -0.1154)
OKLCHoklch(28.03% 0.129 296.8)
XYZxyz(3.5512, 1.8459, 10.9934)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320F5F #3C5F0F
analogous
#0F145F #320F5F #5A0F5F
triadic
#320F5F #5F320F #0F5F32
tetradic
#320F5F #5F0F14 #3C5F0F #0F5F5A
square
#320F5F #5F0F14 #3C5F0F #0F5F5A
split-complementary
#320F5F #5F5A0F #145F0F
monochromatic
#0E041A #16072A #320F5F #4E1794 #6A20C9

Accessibility & contrast

On white

15.34
#320F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #320F5F
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320F5F#FFFFFF#000000##FFFFFF
##320F5F1.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#262537
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #320f5f;
/* rgb */ color: rgb(50, 15, 95);
/* oklch */ color: oklch(28.0% 0.129 296.8);
Tailwind
colors: {
  custom: {
    50: '#70528d',
    500: '#320f5f',
    950: '#000000',
  },
}
SCSS
$custom: #320f5f;
$custom-light: #70528d;
$custom-dark: #000000;
JSON
{
  "hex": "#320f5f",
  "rgb": {
    "r": 50,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 266.25,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28026,
    "c": 0.12929,
    "h": 296.8
  },
  "luminance": 0.01846
}

Semantic roles & 50–950 ramp

primary
#320F5F
secondary
#6B9832
accent
#EF389F
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #320F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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