#321F44#321F44

#321F44 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.2% C 0.069 H 306.2°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#321F44
RGBrgb(50, 31, 68)
HSLhsl(271, 37%, 19%)
HSVhsv(271, 54%, 27%)
CMYKcmyk(26.5%, 54.4%, 0%, 73.3%)
CIE-LABlab(15.88, 17.90, -19.93)
CIE-LCHlch(15.88, 26.79, 311.93°)
OKLaboklab(28.22% 0.0408 -0.0558)
OKLCHoklch(28.22% 0.069 306.2)
XYZxyz(2.8486, 2.0755, 5.7183)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F44 #31441F
analogous
#201F44 #321F44 #441F44
triadic
#321F44 #44321F #1F4432
tetradic
#321F44 #44201F #31441F #1F4444
square
#321F44 #44201F #31441F #1F4444
split-complementary
#321F44 #44441F #1F4420
monochromatic
#0F0A15 #130C1A #321F44 #51326E #704598

Accessibility & contrast

On white

14.84
#321F44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#321F44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F44
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F44#FFFFFF#000000##FFFFFF
##321F441.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152745
Deuteranopia (green-blind)
#1A2843
Tritanopia (blue-blind)
#2F252E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321f44;
/* rgb */ color: rgb(50, 31, 68);
/* oklch */ color: oklch(28.2% 0.069 306.2);
Tailwind
colors: {
  custom: {
    50: '#6b5b78',
    500: '#321f44',
    950: '#000000',
  },
}
SCSS
$custom: #321f44;
$custom-light: #6b5b78;
$custom-dark: #000000;
JSON
{
  "hex": "#321f44",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 68
  },
  "hsl": {
    "h": 270.811,
    "s": 37.374,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28219,
    "c": 0.06911,
    "h": 306.2
  },
  "luminance": 0.02075
}

Semantic roles & 50–950 ramp

primary
#321F44
secondary
#5F7846
accent
#CD5A92
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070409
muted
#7A797B

Preview Lab

Preview with #321F44

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

Preview Lab → · Contrast checker → · Palette generator →

#321F44 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva