#320B4D#320B4D

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

Color values

HEX#320B4D
RGBrgb(50, 11, 77)
HSLhsl(275, 75%, 17%)
HSVhsv(275, 86%, 30%)
CMYKcmyk(35.1%, 85.7%, 0%, 69.8%)
CIE-LABlab(12.31, 31.93, -31.90)
CIE-LCHlch(12.31, 45.13, 315.03°)
OKLaboklab(25.85% 0.0676 -0.0907)
OKLCHoklch(25.85% 0.113 306.7)
XYZxyz(2.7743, 1.4533, 7.1541)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320B4D #264D0B
analogous
#110B4D #320B4D #4D0B47
triadic
#320B4D #4D320B #0B4D32
tetradic
#320B4D #4D110B #264D0B #0B474D
square
#320B4D #4D110B #264D0B #0B474D
split-complementary
#320B4D #474D0B #0B4D11
monochromatic
#11041B #11041B #320B4D #551383 #781AB8

Accessibility & contrast

On white

16.27
#320B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #320B4D
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320B4D#FFFFFF#000000##FFFFFF
##320B4D1.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #320b4d;
/* rgb */ color: rgb(50, 11, 77);
/* oklch */ color: oklch(25.9% 0.113 306.7);
Tailwind
colors: {
  custom: {
    50: '#6d4f7f',
    500: '#320b4d',
    950: '#000000',
  },
}
SCSS
$custom: #320b4d;
$custom-light: #6d4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#320b4d",
  "rgb": {
    "r": 50,
    "g": 11,
    "b": 77
  },
  "hsl": {
    "h": 275.455,
    "s": 75,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25851,
    "c": 0.11317,
    "h": 306.7
  },
  "luminance": 0.01453
}

Semantic roles & 50–950 ramp

primary
#320B4D
secondary
#51892B
accent
#F23683
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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