#321E4D#321E4D

#321E4D is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.084 H 300.9°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#321E4D
RGBrgb(50, 30, 77)
HSLhsl(266, 44%, 21%)
HSVhsv(266, 61%, 30%)
CMYKcmyk(35.1%, 61%, 0%, 69.8%)
CIE-LABlab(16.22, 21.20, -25.59)
CIE-LCHlch(16.22, 33.23, 309.65°)
OKLaboklab(28.67% 0.0432 -0.0723)
OKLCHoklch(28.67% 0.084 300.9)
XYZxyz(3.1189, 2.1425, 7.2690)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E4D #394D1E
analogous
#1E214D #321E4D #491E4D
triadic
#321E4D #4D321E #1E4D32
tetradic
#321E4D #4D1E21 #394D1E #1E4D49
square
#321E4D #4D1E21 #394D1E #1E4D49
split-complementary
#321E4D #4D491E #214D1E
monochromatic
#0E0916 #150D21 #321E4D #4F2F79 #6B40A5

Accessibility & contrast

On white

14.70
#321E4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321E4D
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E4D#FFFFFF#000000##FFFFFF
##321E4D1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B284F
Deuteranopia (green-blind)
#12284C
Tritanopia (blue-blind)
#2D2732
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321e4d;
/* rgb */ color: rgb(50, 30, 77);
/* oklch */ color: oklch(28.7% 0.084 300.9);
Tailwind
colors: {
  custom: {
    50: '#6c5a7f',
    500: '#321e4d',
    950: '#000000',
  },
}
SCSS
$custom: #321e4d;
$custom-light: #6c5a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#321e4d",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 77
  },
  "hsl": {
    "h": 265.532,
    "s": 43.925,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28665,
    "c": 0.08423,
    "h": 300.9
  },
  "luminance": 0.02142
}

Semantic roles & 50–950 ramp

primary
#321E4D
secondary
#688245
accent
#D4549D
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #321E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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