#321E6E#321E6E

#321E6E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.130 H 288.0°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#321E6E
RGBrgb(50, 30, 110)
HSLhsl(255, 57%, 27%)
HSVhsv(255, 73%, 43%)
CMYKcmyk(54.5%, 72.7%, 0%, 56.9%)
CIE-LABlab(18.94, 31.53, -43.13)
CIE-LCHlch(18.94, 53.43, 306.17°)
OKLaboklab(31.49% 0.0402 -0.1239)
OKLCHoklch(31.49% 0.13 288)
XYZxyz(4.5933, 2.7322, 15.0342)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E6E #5A6E1E
analogous
#1E326E #321E6E #5A1E6E
triadic
#321E6E #6E321E #1E6E32
tetradic
#321E6E #6E1E32 #5A6E1E #1E6E5A
square
#321E6E #6E1E32 #5A6E1E #1E6E5A
split-complementary
#321E6E #6E5A1E #326E1E
monochromatic
#0B0718 #1C113E #321E6E #482B9E #603CCA

Accessibility & contrast

On white

13.58
#321E6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321E6E
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E6E#FFFFFF#000000##FFFFFF
##321E6E1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#1B3343
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321e6e;
/* rgb */ color: rgb(50, 30, 110);
/* oklch */ color: oklch(31.5% 0.130 288.0);
Tailwind
colors: {
  custom: {
    50: '#715b98',
    500: '#321e6e',
    950: '#000000',
  },
}
SCSS
$custom: #321e6e;
$custom-light: #715b98;
$custom-dark: #000000;
JSON
{
  "hex": "#321e6e",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 110
  },
  "hsl": {
    "h": 255,
    "s": 57.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31494,
    "c": 0.13023,
    "h": 288
  },
  "luminance": 0.02732
}

Semantic roles & 50–950 ramp

primary
#321E6E
secondary
#8BA246
accent
#E047BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321E6E

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

Preview Lab → · Contrast checker → · Palette generator →

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