#321140#321140

#321140 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.5% C 0.090 H 314.3°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#321140
RGBrgb(50, 17, 64)
HSLhsl(282, 58%, 16%)
HSVhsv(282, 73%, 25%)
CMYKcmyk(21.9%, 73.4%, 0%, 74.9%)
CIE-LABlab(12.28, 25.62, -22.86)
CIE-LCHlch(12.28, 34.33, 318.25°)
OKLaboklab(25.49% 0.0626 -0.0643)
OKLCHoklch(25.49% 0.09 314.3)
XYZxyz(2.4411, 1.4493, 5.0006)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321140 #1F4011
analogous
#1A1140 #321140 #401136
triadic
#321140 #403211 #114032
tetradic
#321140 #401A11 #1F4011 #113640
square
#321140 #401A11 #1F4011 #113640
split-complementary
#321140 #364011 #11401A
monochromatic
#130618 #130618 #321140 #581E70 #7E2BA1

Accessibility & contrast

On white

16.28
#321140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#321140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321140
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321140#FFFFFF#000000##FFFFFF
##3211401.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011E41
Deuteranopia (green-blind)
#0F213F
Tritanopia (blue-blind)
#311A26
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #321140;
/* rgb */ color: rgb(50, 17, 64);
/* oklch */ color: oklch(25.5% 0.090 314.3);
Tailwind
colors: {
  custom: {
    50: '#6c5275',
    500: '#321140',
    950: '#000000',
  },
}
SCSS
$custom: #321140;
$custom-light: #6c5275;
$custom-dark: #000000;
JSON
{
  "hex": "#321140",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 64
  },
  "hsl": {
    "h": 282.128,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25491,
    "c": 0.08973,
    "h": 314.3
  },
  "luminance": 0.01449
}

Semantic roles & 50–950 ramp

primary
#321140
secondary
#487933
accent
#E14775
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #321140

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

Preview Lab → · Contrast checker → · Palette generator →

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