#320B4E#320B4E

#320B4E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.114 H 306.1°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#320B4E
RGBrgb(50, 11, 78)
HSLhsl(275, 75%, 17%)
HSVhsv(275, 86%, 31%)
CMYKcmyk(35.9%, 85.9%, 0%, 69.4%)
CIE-LABlab(12.40, 32.19, -32.44)
CIE-LCHlch(12.40, 45.70, 314.78°)
OKLaboklab(25.94% 0.0673 -0.0923)
OKLCHoklch(25.94% 0.114 306.1)
XYZxyz(2.8099, 1.4675, 7.3415)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320B4E #274E0B
analogous
#100B4E #320B4E #4E0B49
triadic
#320B4E #4E320B #0B4E32
tetradic
#320B4E #4E100B #274E0B #0B494E
square
#320B4E #4E100B #274E0B #0B494E
split-complementary
#320B4E #494E0B #0B4E10
monochromatic
#11041B #11041B #320B4E #541384 #771AB9

Accessibility & contrast

On white

16.23
#320B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #320B4E
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320B4E#FFFFFF#000000##FFFFFF
##320B4E1.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F50
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#2D1C2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #320b4e;
/* rgb */ color: rgb(50, 11, 78);
/* oklch */ color: oklch(25.9% 0.114 306.1);
Tailwind
colors: {
  custom: {
    50: '#6e4f80',
    500: '#320b4e',
    950: '#000000',
  },
}
SCSS
$custom: #320b4e;
$custom-light: #6e4f80;
$custom-dark: #000000;
JSON
{
  "hex": "#320b4e",
  "rgb": {
    "r": 50,
    "g": 11,
    "b": 78
  },
  "hsl": {
    "h": 274.925,
    "s": 75.281,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25944,
    "c": 0.11427,
    "h": 306.1
  },
  "luminance": 0.01468
}

Semantic roles & 50–950 ramp

primary
#320B4E
secondary
#538A2B
accent
#F23684
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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