#321438#321438

#321438 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.4% C 0.075 H 320.7°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#321438
RGBrgb(50, 20, 56)
HSLhsl(290, 47%, 15%)
HSVhsv(290, 64%, 22%)
CMYKcmyk(10.7%, 64.3%, 0%, 78%)
CIE-LABlab(12.38, 21.87, -17.02)
CIE-LCHlch(12.38, 27.71, 322.11°)
OKLaboklab(25.38% 0.0578 -0.0472)
OKLCHoklch(25.38% 0.075 320.7)
XYZxyz(2.2793, 1.4640, 3.9031)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321438 #1A3814
analogous
#201438 #321438 #38142C
triadic
#321438 #383214 #143832
tetradic
#321438 #382014 #1A3814 #142C38
square
#321438 #382014 #1A3814 #142C38
split-complementary
#321438 #2C3814 #143820
monochromatic
#140817 #140817 #321438 #5A2465 #833492

Accessibility & contrast

On white

16.24
#321438 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321438
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321438#FFFFFF#000000##FFFFFF
##3214381.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1E39
Deuteranopia (green-blind)
#172137
Tritanopia (blue-blind)
#321923
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #321438;
/* rgb */ color: rgb(50, 20, 56);
/* oklch */ color: oklch(25.4% 0.075 320.7);
Tailwind
colors: {
  custom: {
    50: '#6b536f',
    500: '#321438',
    950: '#000000',
  },
}
SCSS
$custom: #321438;
$custom-light: #6b536f;
$custom-dark: #000000;
JSON
{
  "hex": "#321438",
  "rgb": {
    "r": 50,
    "g": 20,
    "b": 56
  },
  "hsl": {
    "h": 290,
    "s": 47.368,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25384,
    "c": 0.07461,
    "h": 320.7
  },
  "luminance": 0.01464
}

Semantic roles & 50–950 ramp

primary
#321438
secondary
#417038
accent
#D75167
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #321438

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

Preview Lab → · Contrast checker → · Palette generator →

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