#321F75#321F75

#321F75 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.138 H 285.9°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#321F75
RGBrgb(50, 31, 117)
HSLhsl(253, 58%, 29%)
HSVhsv(253, 74%, 46%)
CMYKcmyk(57.3%, 73.5%, 0%, 54.1%)
CIE-LABlab(19.81, 33.18, -46.22)
CIE-LCHlch(19.81, 56.90, 305.67°)
OKLaboklab(32.32% 0.0378 -0.1329)
OKLCHoklch(32.32% 0.138 285.9)
XYZxyz(5.0153, 2.9422, 17.1298)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F75 #62751F
analogous
#1F3775 #321F75 #5D1F75
triadic
#321F75 #75321F #1F7532
tetradic
#321F75 #751F37 #62751F #1F755D
square
#321F75 #751F37 #62751F #1F755D
split-complementary
#321F75 #755D1F #37751F
monochromatic
#0A0618 #1D1245 #321F75 #472CA5 #6042CD

Accessibility & contrast

On white

13.22
#321F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#321F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F75
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F75#FFFFFF#000000##FFFFFF
##321F751.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003278
Deuteranopia (green-blind)
#002D73
Tritanopia (blue-blind)
#143647
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321f75;
/* rgb */ color: rgb(50, 31, 117);
/* oklch */ color: oklch(32.3% 0.138 285.9);
Tailwind
colors: {
  custom: {
    50: '#725c9e',
    500: '#321f75',
    950: '#000000',
  },
}
SCSS
$custom: #321f75;
$custom-light: #725c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#321f75",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 117
  },
  "hsl": {
    "h": 253.256,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3232,
    "c": 0.13822,
    "h": 285.9
  },
  "luminance": 0.02942
}

Semantic roles & 50–950 ramp

primary
#321F75
secondary
#93A947
accent
#E146BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321F75

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

Preview Lab → · Contrast checker → · Palette generator →

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