#321E5F#321E5F

#321E5F is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.110 H 292.8°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#321E5F
RGBrgb(50, 30, 95)
HSLhsl(258, 52%, 25%)
HSVhsv(258, 68%, 37%)
CMYKcmyk(47.4%, 68.4%, 0%, 62.7%)
CIE-LABlab(17.61, 26.76, -35.45)
CIE-LCHlch(17.61, 44.42, 307.04°)
OKLaboklab(30.13% 0.0425 -0.1013)
OKLCHoklch(30.13% 0.11 292.8)
XYZxyz(3.8447, 2.4328, 11.0913)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E5F #4B5F1E
analogous
#1E2A5F #321E5F #531E5F
triadic
#321E5F #5F321E #1E5F32
tetradic
#321E5F #5F1E2A #4B5F1E #1E5F53
square
#321E5F #5F1E2A #4B5F1E #1E5F53
split-complementary
#321E5F #5F531E #2A5F1E
monochromatic
#0C0717 #1A0F30 #321E5F #4A2D8E #633BBC

Accessibility & contrast

On white

14.13
#321E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#321E5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E5F
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E5F#FFFFFF#000000##FFFFFF
##321E5F1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C61
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#252D3B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321e5f;
/* rgb */ color: rgb(50, 30, 95);
/* oklch */ color: oklch(30.1% 0.110 292.8);
Tailwind
colors: {
  custom: {
    50: '#6e5b8d',
    500: '#321e5f',
    950: '#000000',
  },
}
SCSS
$custom: #321e5f;
$custom-light: #6e5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#321e5f",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 95
  },
  "hsl": {
    "h": 258.462,
    "s": 52,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30126,
    "c": 0.10986,
    "h": 292.8
  },
  "luminance": 0.02433
}

Semantic roles & 50–950 ramp

primary
#321E5F
secondary
#7C9445
accent
#DB4CAF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #321E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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