#321E66#321E66

#321E66 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.8% C 0.119 H 290.4°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#321E66
RGBrgb(50, 30, 102)
HSLhsl(257, 55%, 26%)
HSVhsv(257, 71%, 40%)
CMYKcmyk(51%, 70.6%, 0%, 60%)
CIE-LABlab(18.21, 28.98, -39.09)
CIE-LCHlch(18.21, 48.66, 306.55°)
OKLaboklab(30.75% 0.0416 -0.112)
OKLCHoklch(30.75% 0.119 290.4)
XYZxyz(4.1773, 2.5658, 12.8429)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E66 #52661E
analogous
#1E2E66 #321E66 #561E66
triadic
#321E66 #66321E #1E6632
tetradic
#321E66 #661E2E #52661E #1E6656
square
#321E66 #661E2E #52661E #1E6656
split-complementary
#321E66 #66561E #2E661E
monochromatic
#0C0718 #1B1037 #321E66 #492C95 #603AC5

Accessibility & contrast

On white

13.88
#321E66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#321E66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E66
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E66#FFFFFF#000000##FFFFFF
##321E661.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E68
Deuteranopia (green-blind)
#002B65
Tritanopia (blue-blind)
#21303F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321e66;
/* rgb */ color: rgb(50, 30, 102);
/* oklch */ color: oklch(30.8% 0.119 290.4);
Tailwind
colors: {
  custom: {
    50: '#6f5b92',
    500: '#321e66',
    950: '#000000',
  },
}
SCSS
$custom: #321e66;
$custom-light: #6f5b92;
$custom-dark: #000000;
JSON
{
  "hex": "#321e66",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 102
  },
  "hsl": {
    "h": 256.667,
    "s": 54.545,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3075,
    "c": 0.11948,
    "h": 290.4
  },
  "luminance": 0.02566
}

Semantic roles & 50–950 ramp

primary
#321E66
secondary
#839B45
accent
#DE4AB5
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321E66

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

Preview Lab → · Contrast checker → · Palette generator →

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