#320F40#320F40

#320F40 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.2% C 0.093 H 314.7°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#320F40
RGBrgb(50, 15, 64)
HSLhsl(283, 62%, 15%)
HSVhsv(283, 77%, 25%)
CMYKcmyk(21.9%, 76.6%, 0%, 74.9%)
CIE-LABlab(11.89, 26.70, -23.49)
CIE-LCHlch(11.89, 35.56, 318.66°)
OKLaboklab(25.21% 0.0654 -0.0661)
OKLCHoklch(25.21% 0.093 314.7)
XYZxyz(2.4115, 1.3900, 4.9908)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320F40 #1D400F
analogous
#190F40 #320F40 #400F35
triadic
#320F40 #40320F #0F4032
tetradic
#320F40 #40190F #1D400F #0F3540
square
#320F40 #40190F #1D400F #0F3540
split-complementary
#320F40 #35400F #0F4019
monochromatic
#130619 #130619 #320F40 #591B72 #7F26A3

Accessibility & contrast

On white

16.43
#320F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#320F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320F40
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320F40#FFFFFF#000000##FFFFFF
##320F401.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#0D203F
Tritanopia (blue-blind)
#311926
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #320f40;
/* rgb */ color: rgb(50, 15, 64);
/* oklch */ color: oklch(25.2% 0.093 314.7);
Tailwind
colors: {
  custom: {
    50: '#6c5075',
    500: '#320f40',
    950: '#000000',
  },
}
SCSS
$custom: #320f40;
$custom-light: #6c5075;
$custom-dark: #000000;
JSON
{
  "hex": "#320f40",
  "rgb": {
    "r": 50,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 282.857,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.2521,
    "c": 0.09295,
    "h": 314.7
  },
  "luminance": 0.0139
}

Semantic roles & 50–950 ramp

primary
#320F40
secondary
#467A30
accent
#E54371
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #320F40

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

Preview Lab → · Contrast checker → · Palette generator →

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