#321850#321850

#321850 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.099 H 301.6°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#321850
RGBrgb(50, 24, 80)
HSLhsl(268, 54%, 20%)
HSVhsv(268, 70%, 31%)
CMYKcmyk(37.5%, 70%, 0%, 68.6%)
CIE-LABlab(15.01, 25.91, -29.57)
CIE-LCHlch(15.01, 39.32, 311.22°)
OKLaboklab(27.86% 0.0518 -0.084)
OKLCHoklch(27.86% 0.099 301.6)
XYZxyz(3.0897, 1.9106, 7.7939)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321850 #365018
analogous
#181A50 #321850 #4E1850
triadic
#321850 #503218 #185032
tetradic
#321850 #50181A #365018 #18504E
square
#321850 #50181A #365018 #18504E
split-complementary
#321850 #504E18 #1A5018
monochromatic
#0F0718 #150A21 #321850 #4F267F #6D34AE

Accessibility & contrast

On white

15.19
#321850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#321850 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321850
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321850#FFFFFF#000000##FFFFFF
##3218501.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#04254F
Tritanopia (blue-blind)
#2C2431
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321850;
/* rgb */ color: rgb(50, 24, 80);
/* oklch */ color: oklch(27.9% 0.099 301.6);
Tailwind
colors: {
  custom: {
    50: '#6d5681',
    500: '#321850',
    950: '#000000',
  },
}
SCSS
$custom: #321850;
$custom-light: #6d5681;
$custom-dark: #000000;
JSON
{
  "hex": "#321850",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 80
  },
  "hsl": {
    "h": 267.857,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27856,
    "c": 0.09866,
    "h": 301.6
  },
  "luminance": 0.01911
}

Semantic roles & 50–950 ramp

primary
#321850
secondary
#65873D
accent
#DD4B99
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321850

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

Preview Lab → · Contrast checker → · Palette generator →

#321850 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva