#321E4E#321E4E

#321E4E is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.7% C 0.086 H 300.3°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#321E4E
RGBrgb(50, 30, 78)
HSLhsl(265, 44%, 21%)
HSVhsv(265, 62%, 31%)
CMYKcmyk(35.9%, 61.5%, 0%, 69.4%)
CIE-LABlab(16.29, 21.51, -26.15)
CIE-LCHlch(16.29, 33.86, 309.43°)
OKLaboklab(28.74% 0.0432 -0.074)
OKLCHoklch(28.74% 0.086 300.3)
XYZxyz(3.1545, 2.1567, 7.4563)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E4E #3A4E1E
analogous
#1E224E #321E4E #4A1E4E
triadic
#321E4E #4E321E #1E4E32
tetradic
#321E4E #4E1E22 #3A4E1E #1E4E4A
square
#321E4E #4E1E22 #3A4E1E #1E4E4A
split-complementary
#321E4E #4E4A1E #224E1E
monochromatic
#0E0916 #160D22 #321E4E #4E2F7A #6B40A6

Accessibility & contrast

On white

14.67
#321E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#321E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E4E
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E4E#FFFFFF#000000##FFFFFF
##321E4E1.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2850
Deuteranopia (green-blind)
#11284D
Tritanopia (blue-blind)
#2C2832
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321e4e;
/* rgb */ color: rgb(50, 30, 78);
/* oklch */ color: oklch(28.7% 0.086 300.3);
Tailwind
colors: {
  custom: {
    50: '#6c5a80',
    500: '#321e4e',
    950: '#000000',
  },
}
SCSS
$custom: #321e4e;
$custom-light: #6c5a80;
$custom-dark: #000000;
JSON
{
  "hex": "#321e4e",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 78
  },
  "hsl": {
    "h": 265,
    "s": 44.444,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2874,
    "c": 0.08568,
    "h": 300.3
  },
  "luminance": 0.02157
}

Semantic roles & 50–950 ramp

primary
#321E4E
secondary
#698345
accent
#D4549F
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #321E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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