#321754#321754

#321754 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.106 H 299.9°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#321754
RGBrgb(50, 23, 84)
HSLhsl(267, 57%, 21%)
HSVhsv(267, 73%, 33%)
CMYKcmyk(40.5%, 72.6%, 0%, 67.1%)
CIE-LABlab(15.12, 27.67, -32.12)
CIE-LCHlch(15.12, 42.39, 310.75°)
OKLaboklab(28.04% 0.0526 -0.0915)
OKLCHoklch(28.04% 0.106 299.9)
XYZxyz(3.2216, 1.9310, 8.5888)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321754 #395417
analogous
#171B54 #321754 #501754
triadic
#321754 #543217 #175432
tetradic
#321754 #54171B #395417 #175450
square
#321754 #54171B #395417 #175450
split-complementary
#321754 #545017 #1B5417
monochromatic
#0E0718 #150A24 #321754 #4F2484 #6B31B4

Accessibility & contrast

On white

15.15
#321754 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321754
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321754#FFFFFF#000000##FFFFFF
##3217541.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002656
Deuteranopia (green-blind)
#002553
Tritanopia (blue-blind)
#2A2533
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321754;
/* rgb */ color: rgb(50, 23, 84);
/* oklch */ color: oklch(28.0% 0.106 299.9);
Tailwind
colors: {
  custom: {
    50: '#6d5685',
    500: '#321754',
    950: '#000000',
  },
}
SCSS
$custom: #321754;
$custom-light: #6d5685;
$custom-dark: #000000;
JSON
{
  "hex": "#321754",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 84
  },
  "hsl": {
    "h": 266.557,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28039,
    "c": 0.10551,
    "h": 299.9
  },
  "luminance": 0.01931
}

Semantic roles & 50–950 ramp

primary
#321754
secondary
#688B3C
accent
#E0489D
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321754

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

Preview Lab → · Contrast checker → · Palette generator →

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