#321855#321855

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

Color values

HEX#321855
RGBrgb(50, 24, 85)
HSLhsl(266, 56%, 21%)
HSVhsv(266, 72%, 33%)
CMYKcmyk(41.2%, 71.8%, 0%, 66.7%)
CIE-LABlab(15.42, 27.38, -32.31)
CIE-LCHlch(15.42, 42.35, 310.27°)
OKLaboklab(28.28% 0.0512 -0.092)
OKLCHoklch(28.28% 0.105 299.1)
XYZxyz(3.2813, 1.9872, 8.8033)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321855 #3B5518
analogous
#181D55 #321855 #511855
triadic
#321855 #553218 #185532
tetradic
#321855 #55181D #3B5518 #185551
square
#321855 #55181D #3B5518 #185551
split-complementary
#321855 #555118 #1D5518
monochromatic
#0E0718 #160B25 #321855 #4E2585 #6A33B4

Accessibility & contrast

On white

15.03
#321855 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321855
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321855#FFFFFF#000000##FFFFFF
##3218551.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002757
Deuteranopia (green-blind)
#002654
Tritanopia (blue-blind)
#2A2634
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321855;
/* rgb */ color: rgb(50, 24, 85);
/* oklch */ color: oklch(28.3% 0.105 299.1);
Tailwind
colors: {
  custom: {
    50: '#6d5785',
    500: '#321855',
    950: '#000000',
  },
}
SCSS
$custom: #321855;
$custom-light: #6d5785;
$custom-dark: #000000;
JSON
{
  "hex": "#321855",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 85
  },
  "hsl": {
    "h": 265.574,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28281,
    "c": 0.10532,
    "h": 299.1
  },
  "luminance": 0.01987
}

Semantic roles & 50–950 ramp

primary
#321855
secondary
#6A8C3D
accent
#DF499F
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321855

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

Preview Lab → · Contrast checker → · Palette generator →

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