#321F52#321F52

#321F52 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.2% C 0.090 H 297.8°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#321F52
RGBrgb(50, 31, 82)
HSLhsl(262, 45%, 22%)
HSVhsv(262, 62%, 32%)
CMYKcmyk(39%, 62.2%, 0%, 67.8%)
CIE-LABlab(16.83, 22.06, -28.00)
CIE-LCHlch(16.83, 35.65, 308.23°)
OKLaboklab(29.23% 0.0418 -0.0794)
OKLCHoklch(29.23% 0.09 297.8)
XYZxyz(3.3280, 2.2672, 8.2433)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F52 #3F521F
analogous
#1F2652 #321F52 #4C1F52
triadic
#321F52 #52321F #1F5232
tetradic
#321F52 #521F26 #3F521F #1F524C
square
#321F52 #521F26 #3F521F #1F524C
split-complementary
#321F52 #524C1F #26521F
monochromatic
#0E0816 #170E26 #321F52 #4D307E #6841AB

Accessibility & contrast

On white

14.45
#321F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#321F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F52
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F52#FFFFFF#000000##FFFFFF
##321F521.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072A54
Deuteranopia (green-blind)
#0E2951
Tritanopia (blue-blind)
#2B2A35
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321f52;
/* rgb */ color: rgb(50, 31, 82);
/* oklch */ color: oklch(29.2% 0.090 297.8);
Tailwind
colors: {
  custom: {
    50: '#6c5b83',
    500: '#321f52',
    950: '#000000',
  },
}
SCSS
$custom: #321f52;
$custom-light: #6c5b83;
$custom-dark: #000000;
JSON
{
  "hex": "#321f52",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 262.353,
    "s": 45.133,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29232,
    "c": 0.08974,
    "h": 297.8
  },
  "luminance": 0.02267
}

Semantic roles & 50–950 ramp

primary
#321F52
secondary
#6F8746
accent
#D553A4
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040A
muted
#7A797C

Preview Lab

Preview with #321F52

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

Preview Lab → · Contrast checker → · Palette generator →

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