#321E6F#321E6F

#321E6F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.6% C 0.132 H 287.7°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#321E6F
RGBrgb(50, 30, 111)
HSLhsl(255, 57%, 28%)
HSVhsv(255, 73%, 44%)
CMYKcmyk(55%, 73%, 0%, 56.5%)
CIE-LABlab(19.03, 31.85, -43.63)
CIE-LCHlch(19.03, 54.02, 306.13°)
OKLaboklab(31.59% 0.04 -0.1253)
OKLCHoklch(31.59% 0.132 287.7)
XYZxyz(4.6481, 2.7541, 15.3225)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E6F #5B6F1E
analogous
#1E326F #321E6F #5B1E6F
triadic
#321E6F #6F321E #1E6F32
tetradic
#321E6F #6F1E32 #5B6F1E #1E6F5B
square
#321E6F #6F1E32 #5B6F1E #1E6F5B
split-complementary
#321E6F #6F5B1E #326F1E
monochromatic
#0B0718 #1C113F #321E6F #482B9F #603DCB

Accessibility & contrast

On white

13.54
#321E6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#321E6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E6F
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E6F#FFFFFF#000000##FFFFFF
##321E6F1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#1A3344
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321e6f;
/* rgb */ color: rgb(50, 30, 111);
/* oklch */ color: oklch(31.6% 0.132 287.7);
Tailwind
colors: {
  custom: {
    50: '#715c99',
    500: '#321e6f',
    950: '#000000',
  },
}
SCSS
$custom: #321e6f;
$custom-light: #715c99;
$custom-dark: #000000;
JSON
{
  "hex": "#321e6f",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 111
  },
  "hsl": {
    "h": 254.815,
    "s": 57.447,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31589,
    "c": 0.13156,
    "h": 287.7
  },
  "luminance": 0.02754
}

Semantic roles & 50–950 ramp

primary
#321E6F
secondary
#8CA346
accent
#E147BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321E6F

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

Preview Lab → · Contrast checker → · Palette generator →

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