#321F90#321F90

#321F90 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.172 H 280.4°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#321F90
RGBrgb(50, 31, 144)
HSLhsl(250, 65%, 34%)
HSVhsv(250, 78%, 56%)
CMYKcmyk(65.3%, 78.5%, 0%, 43.5%)
CIE-LABlab(22.55, 41.77, -58.76)
CIE-LCHlch(22.55, 72.09, 305.41°)
OKLaboklab(35.09% 0.0312 -0.1696)
OKLCHoklch(35.09% 0.172 280.4)
XYZxyz(6.8378, 3.6712, 26.7284)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F90 #7D901F
analogous
#1F4590 #321F90 #6A1F90
triadic
#321F90 #90321F #1F9032
tetradic
#321F90 #901F45 #7D901F #1F906A
square
#321F90 #901F45 #7D901F #1F906A
split-complementary
#321F90 #906A1F #45901F
monochromatic
#0F092B #21145E #321F90 #432AC2 #6750D9

Accessibility & contrast

On white

12.11
#321F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#321F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F90
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F90#FFFFFF#000000##FFFFFF
##321F901.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00328E
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #321f90;
/* rgb */ color: rgb(50, 31, 144);
/* oklch */ color: oklch(35.1% 0.172 280.4);
Tailwind
colors: {
  custom: {
    50: '#775eb2',
    500: '#321f90',
    950: '#000000',
  },
}
SCSS
$custom: #321f90;
$custom-light: #775eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#321f90",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 250.088,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35087,
    "c": 0.17242,
    "h": 280.4
  },
  "luminance": 0.03672
}

Semantic roles & 50–950 ramp

primary
#321F90
secondary
#AABC4E
accent
#E840CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321F90

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

Preview Lab → · Contrast checker → · Palette generator →

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