#320740#320740

#320740 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.3% C 0.104 H 316.0°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#320740
RGBrgb(50, 7, 64)
HSLhsl(285, 80%, 14%)
HSVhsv(285, 89%, 25%)
CMYKcmyk(21.9%, 89.1%, 0%, 74.9%)
CIE-LABlab(10.56, 30.49, -25.63)
CIE-LCHlch(10.56, 39.83, 319.95°)
OKLaboklab(24.26% 0.075 -0.0723)
OKLCHoklch(24.26% 0.104 316)
XYZxyz(2.3166, 1.2003, 4.9591)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320740 #154007
analogous
#160740 #320740 #400732
triadic
#320740 #403207 #074032
tetradic
#320740 #401607 #154007 #073240
square
#320740 #401607 #154007 #073240
split-complementary
#320740 #324007 #074016
monochromatic
#16031C #16031C #320740 #5D0D77 #8813AE

Accessibility & contrast

On white

16.94
#320740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#320740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320740
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320740#FFFFFF#000000##FFFFFF
##3207401.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#061E3F
Tritanopia (blue-blind)
#311423
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #320740;
/* rgb */ color: rgb(50, 7, 64);
/* oklch */ color: oklch(24.3% 0.104 316.0);
Tailwind
colors: {
  custom: {
    50: '#6d4d75',
    500: '#320740',
    950: '#000000',
  },
}
SCSS
$custom: #320740;
$custom-light: #6d4d75;
$custom-dark: #000000;
JSON
{
  "hex": "#320740",
  "rgb": {
    "r": 50,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 285.263,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24264,
    "c": 0.10415,
    "h": 316
  },
  "luminance": 0.012
}

Semantic roles & 50–950 ramp

primary
#320740
secondary
#3A7F24
accent
#F73162
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #320740

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

Preview Lab → · Contrast checker → · Palette generator →

#320740 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva