#322157#322157

#322157 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.0% C 0.094 H 294.6°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#322157
RGBrgb(50, 33, 87)
HSLhsl(259, 45%, 24%)
HSVhsv(259, 62%, 34%)
CMYKcmyk(42.5%, 62.1%, 0%, 65.9%)
CIE-LABlab(17.71, 22.29, -29.96)
CIE-LCHlch(17.71, 37.34, 306.65°)
OKLaboklab(30% 0.039 -0.0851)
OKLCHoklch(30% 0.094 294.6)
XYZxyz(3.5791, 2.4539, 9.3000)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322157 #465721
analogous
#212B57 #322157 #4D2157
triadic
#322157 #573221 #215732
tetradic
#322157 #57212B #465721 #21574D
square
#322157 #57212B #465721 #21574D
split-complementary
#322157 #574D21 #2B5721
monochromatic
#0D0816 #18102B #322157 #4B3283 #6543B0

Accessibility & contrast

On white

14.09
#322157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#322157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322157
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322157#FFFFFF#000000##FFFFFF
##3221571.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042C59
Deuteranopia (green-blind)
#0A2B56
Tritanopia (blue-blind)
#292D38
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #322157;
/* rgb */ color: rgb(50, 33, 87);
/* oklch */ color: oklch(30.0% 0.094 294.6);
Tailwind
colors: {
  custom: {
    50: '#6d5d87',
    500: '#322157',
    950: '#000000',
  },
}
SCSS
$custom: #322157;
$custom-light: #6d5d87;
$custom-dark: #000000;
JSON
{
  "hex": "#322157",
  "rgb": {
    "r": 50,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 258.889,
    "s": 45,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29996,
    "c": 0.09366,
    "h": 294.6
  },
  "luminance": 0.02454
}

Semantic roles & 50–950 ramp

primary
#322157
secondary
#768B49
accent
#D553AC
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #322157

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

Preview Lab → · Contrast checker → · Palette generator →

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