#321852#321852

#321852 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.101 H 300.6°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#321852
RGBrgb(50, 24, 82)
HSLhsl(267, 55%, 21%)
HSVhsv(267, 71%, 32%)
CMYKcmyk(39%, 70.7%, 0%, 67.8%)
CIE-LABlab(15.17, 26.49, -30.68)
CIE-LCHlch(15.17, 40.53, 310.81°)
OKLaboklab(28.02% 0.0516 -0.0872)
OKLCHoklch(28.02% 0.101 300.6)
XYZxyz(3.1646, 1.9406, 8.1888)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321852 #385218
analogous
#181B52 #321852 #4F1852
triadic
#321852 #523218 #185232
tetradic
#321852 #52181B #385218 #18524F
square
#321852 #52181B #385218 #18524F
split-complementary
#321852 #524F18 #1B5218
monochromatic
#0E0718 #150A23 #321852 #4F2681 #6C34B1

Accessibility & contrast

On white

15.13
#321852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#321852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321852
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321852#FFFFFF#000000##FFFFFF
##3218521.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002654
Deuteranopia (green-blind)
#012651
Tritanopia (blue-blind)
#2B2532
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321852;
/* rgb */ color: rgb(50, 24, 82);
/* oklch */ color: oklch(28.0% 0.101 300.6);
Tailwind
colors: {
  custom: {
    50: '#6d5783',
    500: '#321852',
    950: '#000000',
  },
}
SCSS
$custom: #321852;
$custom-light: #6d5783;
$custom-dark: #000000;
JSON
{
  "hex": "#321852",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 266.897,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28024,
    "c": 0.10133,
    "h": 300.6
  },
  "luminance": 0.01941
}

Semantic roles & 50–950 ramp

primary
#321852
secondary
#67893D
accent
#DE4A9C
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321852

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

Preview Lab → · Contrast checker → · Palette generator →

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