#321775#321775

#321775 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.147 H 287.6°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#321775
RGBrgb(50, 23, 117)
HSLhsl(257, 67%, 27%)
HSVhsv(257, 80%, 46%)
CMYKcmyk(57.3%, 80.3%, 0%, 54.1%)
CIE-LABlab(18.25, 37.57, -48.78)
CIE-LCHlch(18.25, 61.57, 307.61°)
OKLaboklab(31.22% 0.0446 -0.1404)
OKLCHoklch(31.22% 0.147 287.6)
XYZxyz(4.8317, 2.5750, 17.0686)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321775 #5A7517
analogous
#172B75 #321775 #611775
triadic
#321775 #753217 #177532
tetradic
#321775 #75172B #5A7517 #177561
square
#321775 #75172B #5A7517 #177561
split-complementary
#321775 #756117 #2B7517
monochromatic
#0B051A #1C0D42 #321775 #4821A8 #6030D6

Accessibility & contrast

On white

13.86
#321775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#321775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321775
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321775#FFFFFF#000000##FFFFFF
##3217751.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002A73
Tritanopia (blue-blind)
#153245
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321775;
/* rgb */ color: rgb(50, 23, 117);
/* oklch */ color: oklch(31.2% 0.147 287.6);
Tailwind
colors: {
  custom: {
    50: '#73589e',
    500: '#321775',
    950: '#000000',
  },
}
SCSS
$custom: #321775;
$custom-light: #73589e;
$custom-dark: #000000;
JSON
{
  "hex": "#321775",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 257.234,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31222,
    "c": 0.14729,
    "h": 287.6
  },
  "luminance": 0.02575
}

Semantic roles & 50–950 ramp

primary
#321775
secondary
#8BAA3D
accent
#EA3EB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321775

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

Preview Lab → · Contrast checker → · Palette generator →

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