#321174#321174

#321174 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.4% C 0.152 H 288.9°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#321174
RGBrgb(50, 17, 116)
HSLhsl(260, 74%, 26%)
HSVhsv(260, 85%, 45%)
CMYKcmyk(56.9%, 85.3%, 0%, 54.5%)
CIE-LABlab(17.18, 40.09, -49.91)
CIE-LCHlch(17.18, 64.02, 308.77°)
OKLaboklab(30.44% 0.0492 -0.1436)
OKLCHoklch(30.44% 0.152 288.9)
XYZxyz(4.6673, 2.3397, 16.7253)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321174 #537411
analogous
#112174 #321174 #631174
triadic
#321174 #743211 #117432
tetradic
#321174 #741121 #537411 #117463
square
#321174 #741121 #537411 #117463
split-complementary
#321174 #746311 #217411
monochromatic
#0C041B #1B093F #321174 #4919A9 #6021DE

Accessibility & contrast

On white

14.31
#321174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#321174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321174
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321174#FFFFFF#000000##FFFFFF
##3211741.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#172F44
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321174;
/* rgb */ color: rgb(50, 17, 116);
/* oklch */ color: oklch(30.4% 0.152 288.9);
Tailwind
colors: {
  custom: {
    50: '#73559d',
    500: '#321174',
    950: '#000000',
  },
}
SCSS
$custom: #321174;
$custom-light: #73559d;
$custom-dark: #000000;
JSON
{
  "hex": "#321174",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 260,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30442,
    "c": 0.1518,
    "h": 288.9
  },
  "luminance": 0.0234
}

Semantic roles & 50–950 ramp

primary
#321174
secondary
#84AB36
accent
#F137B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321174

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

Preview Lab → · Contrast checker → · Palette generator →

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