#321C5C#321C5C

#321C5C is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.5% C 0.109 H 294.6°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#321C5C
RGBrgb(50, 28, 92)
HSLhsl(261, 53%, 24%)
HSVhsv(261, 70%, 36%)
CMYKcmyk(45.7%, 69.6%, 0%, 63.9%)
CIE-LABlab(16.90, 27.07, -34.61)
CIE-LCHlch(16.90, 43.94, 308.02°)
OKLaboklab(29.53% 0.0453 -0.0988)
OKLCHoklch(29.53% 0.109 294.6)
XYZxyz(3.6619, 2.2812, 10.3705)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C5C #465C1C
analogous
#1C265C #321C5C #521C5C
triadic
#321C5C #5C321C #1C5C32
tetradic
#321C5C #5C1C26 #465C1C #1C5C52
square
#321C5C #5C1C26 #465C1C #1C5C52
split-complementary
#321C5C #5C521C #265C1C
monochromatic
#0D0717 #180E2D #321C5C #4B2A8B #6539BA

Accessibility & contrast

On white

14.42
#321C5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#321C5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C5C
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C5C#FFFFFF#000000##FFFFFF
##321C5C1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#00295B
Tritanopia (blue-blind)
#272B39
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321c5c;
/* rgb */ color: rgb(50, 28, 92);
/* oklch */ color: oklch(29.5% 0.109 294.6);
Tailwind
colors: {
  custom: {
    50: '#6e598b',
    500: '#321c5c',
    950: '#000000',
  },
}
SCSS
$custom: #321c5c;
$custom-light: #6e598b;
$custom-dark: #000000;
JSON
{
  "hex": "#321c5c",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 92
  },
  "hsl": {
    "h": 260.625,
    "s": 53.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29532,
    "c": 0.10872,
    "h": 294.6
  },
  "luminance": 0.02281
}

Semantic roles & 50–950 ramp

primary
#321C5C
secondary
#769142
accent
#DD4BAB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #321C5C

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

Preview Lab → · Contrast checker → · Palette generator →

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