#321957#321957

#321957 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.106 H 297.8°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#321957
RGBrgb(50, 25, 87)
HSLhsl(264, 55%, 22%)
HSVhsv(264, 71%, 34%)
CMYKcmyk(42.5%, 71.3%, 0%, 65.9%)
CIE-LABlab(15.81, 27.37, -33.03)
CIE-LCHlch(15.81, 42.90, 309.65°)
OKLaboklab(28.61% 0.0497 -0.0942)
OKLCHoklch(28.61% 0.106 297.8)
XYZxyz(3.3829, 2.0614, 9.2346)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321957 #3E5719
analogous
#191F57 #321957 #511957
triadic
#321957 #573219 #195732
tetradic
#321957 #57191F #3E5719 #195751
square
#321957 #57191F #3E5719 #195751
split-complementary
#321957 #575119 #1F5719
monochromatic
#0E0718 #170B27 #321957 #4D2787 #6934B6

Accessibility & contrast

On white

14.87
#321957 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#321957 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321957
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321957#FFFFFF#000000##FFFFFF
##3219571.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002859
Deuteranopia (green-blind)
#002756
Tritanopia (blue-blind)
#292735
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321957;
/* rgb */ color: rgb(50, 25, 87);
/* oklch */ color: oklch(28.6% 0.106 297.8);
Tailwind
colors: {
  custom: {
    50: '#6e5787',
    500: '#321957',
    950: '#000000',
  },
}
SCSS
$custom: #321957;
$custom-light: #6e5787;
$custom-dark: #000000;
JSON
{
  "hex": "#321957",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 87
  },
  "hsl": {
    "h": 264.194,
    "s": 55.357,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28612,
    "c": 0.10647,
    "h": 297.8
  },
  "luminance": 0.02061
}

Semantic roles & 50–950 ramp

primary
#321957
secondary
#6E8D3E
accent
#DF49A2
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321957

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

Preview Lab → · Contrast checker → · Palette generator →

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