#321958#321958

#321958 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.108 H 297.4°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#321958
RGBrgb(50, 25, 88)
HSLhsl(264, 56%, 22%)
HSVhsv(264, 72%, 35%)
CMYKcmyk(43.2%, 71.6%, 0%, 65.5%)
CIE-LABlab(15.89, 27.67, -33.57)
CIE-LCHlch(15.89, 43.51, 309.50°)
OKLaboklab(28.7% 0.0495 -0.0957)
OKLCHoklch(28.7% 0.108 297.4)
XYZxyz(3.4240, 2.0779, 9.4513)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321958 #3F5819
analogous
#191F58 #321958 #521958
triadic
#321958 #583219 #195832
tetradic
#321958 #58191F #3F5819 #195852
square
#321958 #58191F #3F5819 #195852
split-complementary
#321958 #585219 #1F5819
monochromatic
#0E0718 #170B28 #321958 #4D2788 #6834B7

Accessibility & contrast

On white

14.83
#321958 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#321958 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321958
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321958#FFFFFF#000000##FFFFFF
##3219581.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#002757
Tritanopia (blue-blind)
#292836
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321958;
/* rgb */ color: rgb(50, 25, 88);
/* oklch */ color: oklch(28.7% 0.108 297.4);
Tailwind
colors: {
  custom: {
    50: '#6e5788',
    500: '#321958',
    950: '#000000',
  },
}
SCSS
$custom: #321958;
$custom-light: #6e5788;
$custom-dark: #000000;
JSON
{
  "hex": "#321958",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 88
  },
  "hsl": {
    "h": 263.81,
    "s": 55.752,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28699,
    "c": 0.1078,
    "h": 297.4
  },
  "luminance": 0.02078
}

Semantic roles & 50–950 ramp

primary
#321958
secondary
#6F8E3E
accent
#DF49A3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321958

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

Preview Lab → · Contrast checker → · Palette generator →

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