#321868#321868

#321868 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.130 H 291.4°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#321868
RGBrgb(50, 24, 104)
HSLhsl(260, 63%, 25%)
HSVhsv(260, 77%, 41%)
CMYKcmyk(51.9%, 76.9%, 0%, 59.2%)
CIE-LABlab(17.14, 33.10, -42.17)
CIE-LCHlch(17.14, 53.61, 308.13°)
OKLaboklab(30.04% 0.0474 -0.121)
OKLCHoklch(30.04% 0.13 291.4)
XYZxyz(4.1400, 2.3307, 13.3258)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321868 #4E6818
analogous
#182668 #321868 #5A1868
triadic
#321868 #683218 #186832
tetradic
#321868 #681826 #4E6818 #18685A
square
#321868 #681826 #4E6818 #18685A
split-complementary
#321868 #685A18 #266818
monochromatic
#0C0619 #1A0D36 #321868 #4A239A #622FCB

Accessibility & contrast

On white

14.32
#321868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321868
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321868#FFFFFF#000000##FFFFFF
##3218681.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#202D3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321868;
/* rgb */ color: rgb(50, 24, 104);
/* oklch */ color: oklch(30.0% 0.130 291.4);
Tailwind
colors: {
  custom: {
    50: '#705894',
    500: '#321868',
    950: '#000000',
  },
}
SCSS
$custom: #321868;
$custom-light: #705894;
$custom-dark: #000000;
JSON
{
  "hex": "#321868",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 259.5,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30037,
    "c": 0.12998,
    "h": 291.4
  },
  "luminance": 0.02331
}

Semantic roles & 50–950 ramp

primary
#321868
secondary
#7F9E3E
accent
#E642B0
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #321868

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

Preview Lab → · Contrast checker → · Palette generator →

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