#321F40#321F40

#321F40 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.0% C 0.063 H 309.4°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#321F40
RGBrgb(50, 31, 64)
HSLhsl(275, 35%, 19%)
HSVhsv(275, 52%, 25%)
CMYKcmyk(21.9%, 51.6%, 0%, 74.9%)
CIE-LABlab(15.64, 16.78, -17.54)
CIE-LCHlch(15.64, 24.27, 313.73°)
OKLaboklab(27.96% 0.0401 -0.0488)
OKLCHoklch(27.96% 0.063 309.4)
XYZxyz(2.7306, 2.0283, 5.0971)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F40 #2D401F
analogous
#211F40 #321F40 #401F3D
triadic
#321F40 #40321F #1F4032
tetradic
#321F40 #40211F #2D401F #1F3D40
square
#321F40 #40211F #2D401F #1F3D40
split-complementary
#321F40 #3D401F #1F4021
monochromatic
#100A15 #120B17 #321F40 #523369 #724792

Accessibility & contrast

On white

14.94
#321F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#321F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F40
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F40#FFFFFF#000000##FFFFFF
##321F401.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172641
Deuteranopia (green-blind)
#1C273F
Tritanopia (blue-blind)
#30242C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321f40;
/* rgb */ color: rgb(50, 31, 64);
/* oklch */ color: oklch(28.0% 0.063 309.4);
Tailwind
colors: {
  custom: {
    50: '#6b5b75',
    500: '#321f40',
    950: '#000000',
  },
}
SCSS
$custom: #321f40;
$custom-light: #6b5b75;
$custom-dark: #000000;
JSON
{
  "hex": "#321f40",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 64
  },
  "hsl": {
    "h": 274.545,
    "s": 34.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.27958,
    "c": 0.0632,
    "h": 309.4
  },
  "luminance": 0.02028
}

Semantic roles & 50–950 ramp

primary
#321F40
secondary
#5A7447
accent
#CB5D8C
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #321F40

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

Preview Lab → · Contrast checker → · Palette generator →

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