#320F4B#320F4B

#320F4B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.106 H 307.1°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#320F4B
RGBrgb(50, 15, 75)
HSLhsl(275, 67%, 18%)
HSVhsv(275, 80%, 29%)
CMYKcmyk(33.3%, 80%, 0%, 70.6%)
CIE-LABlab(12.78, 29.54, -29.74)
CIE-LCHlch(12.78, 41.92, 314.80°)
OKLaboklab(26.13% 0.0638 -0.0844)
OKLCHoklch(26.13% 0.106 307.1)
XYZxyz(2.7559, 1.5278, 6.8050)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320F4B #284B0F
analogous
#140F4B #320F4B #4B0F46
triadic
#320F4B #4B320F #0F4B32
tetradic
#320F4B #4B140F #284B0F #0F464B
square
#320F4B #4B140F #284B0F #0F464B
split-complementary
#320F4B #464B0F #0F4B14
monochromatic
#11051A #11051A #320F4B #54197E #7623B1

Accessibility & contrast

On white

16.08
#320F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #320F4B
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320F4B#FFFFFF#000000##FFFFFF
##320F4B1.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#00214A
Tritanopia (blue-blind)
#2E1D2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #320f4b;
/* rgb */ color: rgb(50, 15, 75);
/* oklch */ color: oklch(26.1% 0.106 307.1);
Tailwind
colors: {
  custom: {
    50: '#6d517e',
    500: '#320f4b',
    950: '#000000',
  },
}
SCSS
$custom: #320f4b;
$custom-light: #6d517e;
$custom-dark: #000000;
JSON
{
  "hex": "#320f4b",
  "rgb": {
    "r": 50,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 275,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.2613,
    "c": 0.10586,
    "h": 307.1
  },
  "luminance": 0.01528
}

Semantic roles & 50–950 ramp

primary
#320F4B
secondary
#548530
accent
#EA3E86
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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