#320B4B#320B4B

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

Color values

HEX#320B4B
RGBrgb(50, 11, 75)
HSLhsl(277, 74%, 17%)
HSVhsv(277, 85%, 29%)
CMYKcmyk(33.3%, 85.3%, 0%, 70.6%)
CIE-LABlab(12.13, 31.42, -30.81)
CIE-LCHlch(12.13, 44.00, 315.56°)
OKLaboklab(25.67% 0.0681 -0.0875)
OKLCHoklch(25.67% 0.111 307.9)
XYZxyz(2.7048, 1.4255, 6.7879)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320B4B #244B0B
analogous
#120B4B #320B4B #4B0B44
triadic
#320B4B #4B320B #0B4B32
tetradic
#320B4B #4B120B #244B0B #0B444B
square
#320B4B #4B120B #244B0B #0B444B
split-complementary
#320B4B #444B0B #0B4B12
monochromatic
#12041B #12041B #320B4B #561380 #791BB6

Accessibility & contrast

On white

16.34
#320B4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#320B4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320B4B
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320B4B#FFFFFF#000000##FFFFFF
##320B4B1.0016.341.2916.34
#FFFFFF16.341.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #320b4b;
/* rgb */ color: rgb(50, 11, 75);
/* oklch */ color: oklch(25.7% 0.111 307.9);
Tailwind
colors: {
  custom: {
    50: '#6d4f7e',
    500: '#320b4b',
    950: '#000000',
  },
}
SCSS
$custom: #320b4b;
$custom-light: #6d4f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#320b4b",
  "rgb": {
    "r": 50,
    "g": 11,
    "b": 75
  },
  "hsl": {
    "h": 276.563,
    "s": 74.419,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25666,
    "c": 0.11094,
    "h": 307.9
  },
  "luminance": 0.01425
}

Semantic roles & 50–950 ramp

primary
#320B4B
secondary
#4F872B
accent
#F13780
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320B4B

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

Preview Lab → · Contrast checker → · Palette generator →

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