#321658#321658

#321658 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.112 H 298.3°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#321658
RGBrgb(50, 22, 88)
HSLhsl(265, 60%, 22%)
HSVhsv(265, 75%, 35%)
CMYKcmyk(43.2%, 75%, 0%, 65.5%)
CIE-LABlab(15.26, 29.42, -34.60)
CIE-LCHlch(15.26, 45.42, 310.38°)
OKLaboklab(28.24% 0.0531 -0.0988)
OKLCHoklch(28.24% 0.112 298.3)
XYZxyz(3.3633, 1.9565, 9.4311)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321658 #3C5816
analogous
#161B58 #321658 #531658
triadic
#321658 #583216 #165832
tetradic
#321658 #58161B #3C5816 #165853
square
#321658 #58161B #3C5816 #165853
split-complementary
#321658 #585316 #1B5816
monochromatic
#0E0618 #160A27 #321658 #4E2289 #6A2EBA

Accessibility & contrast

On white

15.09
#321658 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321658
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321658#FFFFFF#000000##FFFFFF
##3216581.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#292635
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321658;
/* rgb */ color: rgb(50, 22, 88);
/* oklch */ color: oklch(28.2% 0.112 298.3);
Tailwind
colors: {
  custom: {
    50: '#6e5688',
    500: '#321658',
    950: '#000000',
  },
}
SCSS
$custom: #321658;
$custom-light: #6e5688;
$custom-dark: #000000;
JSON
{
  "hex": "#321658",
  "rgb": {
    "r": 50,
    "g": 22,
    "b": 88
  },
  "hsl": {
    "h": 265.455,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28245,
    "c": 0.11215,
    "h": 298.3
  },
  "luminance": 0.01957
}

Semantic roles & 50–950 ramp

primary
#321658
secondary
#6B8F3B
accent
#E345A0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321658

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

Preview Lab → · Contrast checker → · Palette generator →

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