#322147#322147

#322147 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.8% C 0.070 H 302.9°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#322147
RGBrgb(50, 33, 71)
HSLhsl(267, 37%, 20%)
HSVhsv(267, 54%, 28%)
CMYKcmyk(29.6%, 53.5%, 0%, 72.2%)
CIE-LABlab(16.61, 17.41, -20.85)
CIE-LCHlch(16.61, 27.16, 309.85°)
OKLaboklab(28.82% 0.0379 -0.0585)
OKLCHoklch(28.82% 0.07 302.9)
XYZxyz(2.9963, 2.2208, 6.2308)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322147 #364721
analogous
#212347 #322147 #452147
triadic
#322147 #473221 #214732
tetradic
#322147 #472123 #364721 #214745
square
#322147 #472123 #364721 #214745
split-complementary
#322147 #474521 #234721
monochromatic
#0F0A15 #150E1D #322147 #4F3471 #6D489B

Accessibility & contrast

On white

14.54
#322147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#322147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322147
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322147#FFFFFF#000000##FFFFFF
##3221471.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162948
Deuteranopia (green-blind)
#1A2946
Tritanopia (blue-blind)
#2E2830
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #322147;
/* rgb */ color: rgb(50, 33, 71);
/* oklch */ color: oklch(28.8% 0.070 302.9);
Tailwind
colors: {
  custom: {
    50: '#6b5c7a',
    500: '#322147',
    950: '#000000',
  },
}
SCSS
$custom: #322147;
$custom-light: #6b5c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#322147",
  "rgb": {
    "r": 50,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 266.842,
    "s": 36.538,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28823,
    "c": 0.06968,
    "h": 302.9
  },
  "luminance": 0.02221
}

Semantic roles & 50–950 ramp

primary
#322147
secondary
#657B49
accent
#CD5B9A
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070409
muted
#7A797B

Preview Lab

Preview with #322147

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

Preview Lab → · Contrast checker → · Palette generator →

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