#321C40#321C40

#321C40 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.4% C 0.069 H 310.8°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#321C40
RGBrgb(50, 28, 64)
HSLhsl(277, 39%, 18%)
HSVhsv(277, 56%, 25%)
CMYKcmyk(21.9%, 56.2%, 0%, 74.9%)
CIE-LABlab(14.84, 18.80, -18.79)
CIE-LCHlch(14.84, 26.59, 315.02°)
OKLaboklab(27.36% 0.0453 -0.0525)
OKLCHoklch(27.36% 0.069 310.8)
XYZxyz(2.6559, 1.8788, 5.0722)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C40 #2A401C
analogous
#201C40 #321C40 #401C3C
triadic
#321C40 #40321C #1C4032
tetradic
#321C40 #40201C #2A401C #1C3C40
square
#321C40 #40201C #2A401C #1C3C40
split-complementary
#321C40 #3C401C #1C4020
monochromatic
#110915 #110915 #321C40 #532F6B #754195

Accessibility & contrast

On white

15.26
#321C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#321C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C40
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C40#FFFFFF#000000##FFFFFF
##321C401.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132441
Deuteranopia (green-blind)
#19263F
Tritanopia (blue-blind)
#30222B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321c40;
/* rgb */ color: rgb(50, 28, 64);
/* oklch */ color: oklch(27.4% 0.069 310.8);
Tailwind
colors: {
  custom: {
    50: '#6b5975',
    500: '#321c40',
    950: '#000000',
  },
}
SCSS
$custom: #321c40;
$custom-light: #6b5975;
$custom-dark: #000000;
JSON
{
  "hex": "#321c40",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 64
  },
  "hsl": {
    "h": 276.667,
    "s": 39.13,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27364,
    "c": 0.0693,
    "h": 310.8
  },
  "luminance": 0.01879
}

Semantic roles & 50–950 ramp

primary
#321C40
secondary
#567543
accent
#CF5987
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #321C40

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

Preview Lab → · Contrast checker → · Palette generator →

#321C40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva