#321757#321757

#321757 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.109 H 298.4°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#321757
RGBrgb(50, 23, 87)
HSLhsl(265, 58%, 22%)
HSVhsv(265, 74%, 34%)
CMYKcmyk(42.5%, 73.6%, 0%, 65.9%)
CIE-LABlab(15.38, 28.56, -33.73)
CIE-LCHlch(15.38, 44.19, 310.25°)
OKLaboklab(28.3% 0.0521 -0.0962)
OKLCHoklch(28.3% 0.109 298.4)
XYZxyz(3.3417, 1.9790, 9.2209)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321757 #3C5717
analogous
#171C57 #321757 #521757
triadic
#321757 #573217 #175732
tetradic
#321757 #57171C #3C5717 #175752
square
#321757 #57171C #3C5717 #175752
split-complementary
#321757 #575217 #1C5717
monochromatic
#0E0618 #160A27 #321757 #4E2487 #6A31B8

Accessibility & contrast

On white

15.05
#321757 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#321757 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321757
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321757#FFFFFF#000000##FFFFFF
##3217571.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002759
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#292635
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321757;
/* rgb */ color: rgb(50, 23, 87);
/* oklch */ color: oklch(28.3% 0.109 298.4);
Tailwind
colors: {
  custom: {
    50: '#6e5687',
    500: '#321757',
    950: '#000000',
  },
}
SCSS
$custom: #321757;
$custom-light: #6e5687;
$custom-dark: #000000;
JSON
{
  "hex": "#321757",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 87
  },
  "hsl": {
    "h": 265.313,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28303,
    "c": 0.10943,
    "h": 298.4
  },
  "luminance": 0.01979
}

Semantic roles & 50–950 ramp

primary
#321757
secondary
#6B8E3C
accent
#E146A0
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321757

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

Preview Lab → · Contrast checker → · Palette generator →

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