#321857#321857

#321857 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.108 H 298.1°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#321857
RGBrgb(50, 24, 87)
HSLhsl(265, 57%, 22%)
HSVhsv(265, 72%, 34%)
CMYKcmyk(42.5%, 72.4%, 0%, 65.9%)
CIE-LABlab(15.59, 27.97, -33.39)
CIE-LCHlch(15.59, 43.55, 309.96°)
OKLaboklab(28.46% 0.0509 -0.0952)
OKLCHoklch(28.46% 0.108 298.1)
XYZxyz(3.3619, 2.0194, 9.2276)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321857 #3D5718
analogous
#181E57 #321857 #521857
triadic
#321857 #573218 #185732
tetradic
#321857 #57181E #3D5718 #185752
square
#321857 #57181E #3D5718 #185752
split-complementary
#321857 #575218 #1E5718
monochromatic
#0E0718 #160B27 #321857 #4E2587 #6932B7

Accessibility & contrast

On white

14.96
#321857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321857
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321857#FFFFFF#000000##FFFFFF
##3218571.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002759
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#292735
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321857;
/* rgb */ color: rgb(50, 24, 87);
/* oklch */ color: oklch(28.5% 0.108 298.1);
Tailwind
colors: {
  custom: {
    50: '#6e5787',
    500: '#321857',
    950: '#000000',
  },
}
SCSS
$custom: #321857;
$custom-light: #6e5787;
$custom-dark: #000000;
JSON
{
  "hex": "#321857",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 87
  },
  "hsl": {
    "h": 264.762,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28455,
    "c": 0.10797,
    "h": 298.1
  },
  "luminance": 0.02019
}

Semantic roles & 50–950 ramp

primary
#321857
secondary
#6C8E3D
accent
#E048A1
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321857

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

Preview Lab → · Contrast checker → · Palette generator →

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