#321E40#321E40

#321E40 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.8% C 0.065 H 309.9°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#321E40
RGBrgb(50, 30, 64)
HSLhsl(275, 36%, 18%)
HSVhsv(275, 53%, 25%)
CMYKcmyk(21.9%, 53.1%, 0%, 74.9%)
CIE-LABlab(15.37, 17.46, -17.96)
CIE-LCHlch(15.37, 25.05, 314.18°)
OKLaboklab(27.76% 0.0419 -0.05)
OKLCHoklch(27.76% 0.065 309.9)
XYZxyz(2.7049, 1.9769, 5.0886)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E40 #2C401E
analogous
#211E40 #321E40 #401E3D
triadic
#321E40 #40321E #1E4032
tetradic
#321E40 #40211E #2C401E #1E3D40
square
#321E40 #40211E #2C401E #1E3D40
split-complementary
#321E40 #3D401E #1E4021
monochromatic
#100A15 #110A16 #321E40 #53326A #734593

Accessibility & contrast

On white

15.05
#321E40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#321E40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E40
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E40#FFFFFF#000000##FFFFFF
##321E401.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162641
Deuteranopia (green-blind)
#1B273F
Tritanopia (blue-blind)
#30232C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321e40;
/* rgb */ color: rgb(50, 30, 64);
/* oklch */ color: oklch(27.8% 0.065 309.9);
Tailwind
colors: {
  custom: {
    50: '#6b5a75',
    500: '#321e40',
    950: '#000000',
  },
}
SCSS
$custom: #321e40;
$custom-light: #6b5a75;
$custom-dark: #000000;
JSON
{
  "hex": "#321e40",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 64
  },
  "hsl": {
    "h": 275.294,
    "s": 36.17,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27756,
    "c": 0.06524,
    "h": 309.9
  },
  "luminance": 0.01977
}

Semantic roles & 50–950 ramp

primary
#321E40
secondary
#597445
accent
#CC5C8A
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #321E40

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

Preview Lab → · Contrast checker → · Palette generator →

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