#321A50#321A50

#321A50 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.095 H 300.9°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#321A50
RGBrgb(50, 26, 80)
HSLhsl(267, 51%, 21%)
HSVhsv(267, 68%, 31%)
CMYKcmyk(37.5%, 67.5%, 0%, 68.6%)
CIE-LABlab(15.47, 24.67, -28.84)
CIE-LCHlch(15.47, 37.95, 310.55°)
OKLaboklab(28.19% 0.049 -0.0819)
OKLCHoklch(28.19% 0.095 300.9)
XYZxyz(3.1324, 1.9961, 7.8081)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A50 #38501A
analogous
#1A1D50 #321A50 #4D1A50
triadic
#321A50 #50321A #1A5032
tetradic
#321A50 #501A1D #38501A #1A504D
square
#321A50 #501A1D #38501A #1A504D
split-complementary
#321A50 #504D1A #1D501A
monochromatic
#0E0817 #150B22 #321A50 #4F297E #6C38AC

Accessibility & contrast

On white

15.01
#321A50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#321A50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A50
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A50#FFFFFF#000000##FFFFFF
##321A501.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002652
Deuteranopia (green-blind)
#08264F
Tritanopia (blue-blind)
#2C2632
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321a50;
/* rgb */ color: rgb(50, 26, 80);
/* oklch */ color: oklch(28.2% 0.095 300.9);
Tailwind
colors: {
  custom: {
    50: '#6d5881',
    500: '#321a50',
    950: '#000000',
  },
}
SCSS
$custom: #321a50;
$custom-light: #6d5881;
$custom-dark: #000000;
JSON
{
  "hex": "#321a50",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 80
  },
  "hsl": {
    "h": 266.667,
    "s": 50.943,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28186,
    "c": 0.0954,
    "h": 300.9
  },
  "luminance": 0.01996
}

Semantic roles & 50–950 ramp

primary
#321A50
secondary
#678640
accent
#DA4D9C
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321A50

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

Preview Lab → · Contrast checker → · Palette generator →

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