#321E5E#321E5E

#321E5E is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.0% C 0.108 H 293.1°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#321E5E
RGBrgb(50, 30, 94)
HSLhsl(259, 52%, 24%)
HSVhsv(259, 68%, 37%)
CMYKcmyk(46.8%, 68.1%, 0%, 63.1%)
CIE-LABlab(17.53, 26.44, -34.92)
CIE-LCHlch(17.53, 43.81, 307.13°)
OKLaboklab(30.04% 0.0426 -0.0997)
OKLCHoklch(30.04% 0.108 293.1)
XYZxyz(3.7995, 2.4147, 10.8534)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E5E #4A5E1E
analogous
#1E2A5E #321E5E #521E5E
triadic
#321E5E #5E321E #1E5E32
tetradic
#321E5E #5E1E2A #4A5E1E #1E5E52
square
#321E5E #5E1E2A #4A5E1E #1E5E52
split-complementary
#321E5E #5E521E #2A5E1E
monochromatic
#0C0717 #190F30 #321E5E #4B2D8C #633CBB

Accessibility & contrast

On white

14.16
#321E5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#321E5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E5E
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E5E#FFFFFF#000000##FFFFFF
##321E5E1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#262D3B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321e5e;
/* rgb */ color: rgb(50, 30, 94);
/* oklch */ color: oklch(30.0% 0.108 293.1);
Tailwind
colors: {
  custom: {
    50: '#6e5b8c',
    500: '#321e5e',
    950: '#000000',
  },
}
SCSS
$custom: #321e5e;
$custom-light: #6e5b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#321e5e",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 94
  },
  "hsl": {
    "h": 258.75,
    "s": 51.613,
    "l": 24.314
  },
  "oklch": {
    "l": 0.3004,
    "c": 0.10847,
    "h": 293.1
  },
  "luminance": 0.02415
}

Semantic roles & 50–950 ramp

primary
#321E5E
secondary
#7B9345
accent
#DB4DAF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #321E5E

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

Preview Lab → · Contrast checker → · Palette generator →

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