#321F66#321F66

#321F66 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.9% C 0.118 H 290.0°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#321F66
RGBrgb(50, 31, 102)
HSLhsl(256, 53%, 26%)
HSVhsv(256, 70%, 40%)
CMYKcmyk(51%, 69.6%, 0%, 60%)
CIE-LABlab(18.44, 28.36, -38.73)
CIE-LCHlch(18.44, 48.00, 306.22°)
OKLaboklab(30.91% 0.0405 -0.1109)
OKLCHoklch(30.91% 0.118 290)
XYZxyz(4.2030, 2.6172, 12.8515)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F66 #53661F
analogous
#1F2F66 #321F66 #551F66
triadic
#321F66 #66321F #1F6632
tetradic
#321F66 #661F2F #53661F #1F6655
square
#321F66 #661F2F #53661F #1F6655
split-complementary
#321F66 #66551F #2F661F
monochromatic
#0C0717 #1B1137 #321F66 #492D95 #603CC4

Accessibility & contrast

On white

13.78
#321F66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#321F66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F66
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F66#FFFFFF#000000##FFFFFF
##321F661.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321f66;
/* rgb */ color: rgb(50, 31, 102);
/* oklch */ color: oklch(30.9% 0.118 290.0);
Tailwind
colors: {
  custom: {
    50: '#6f5c92',
    500: '#321f66',
    950: '#000000',
  },
}
SCSS
$custom: #321f66;
$custom-light: #6f5c92;
$custom-dark: #000000;
JSON
{
  "hex": "#321f66",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 102
  },
  "hsl": {
    "h": 256.056,
    "s": 53.383,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30913,
    "c": 0.11807,
    "h": 290
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#321F66
secondary
#849A46
accent
#DD4BB6
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321F66

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

Preview Lab → · Contrast checker → · Palette generator →

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