#321F53#321F53

#321F53 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.3% C 0.091 H 297.3°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#321F53
RGBrgb(50, 31, 83)
HSLhsl(262, 46%, 22%)
HSVhsv(262, 63%, 33%)
CMYKcmyk(39.8%, 62.7%, 0%, 67.5%)
CIE-LABlab(16.91, 22.37, -28.56)
CIE-LCHlch(16.91, 36.28, 308.07°)
OKLaboklab(29.31% 0.0418 -0.081)
OKLCHoklch(29.31% 0.091 297.3)
XYZxyz(3.3663, 2.2826, 8.4452)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F53 #40531F
analogous
#1F2653 #321F53 #4C1F53
triadic
#321F53 #53321F #1F5332
tetradic
#321F53 #531F26 #40531F #1F534C
square
#321F53 #531F26 #40531F #1F534C
split-complementary
#321F53 #534C1F #26531F
monochromatic
#0D0816 #170E26 #321F53 #4D3080 #6840AC

Accessibility & contrast

On white

14.42
#321F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#321F53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F53
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F53#FFFFFF#000000##FFFFFF
##321F531.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052A55
Deuteranopia (green-blind)
#0C2952
Tritanopia (blue-blind)
#2A2A35
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321f53;
/* rgb */ color: rgb(50, 31, 83);
/* oklch */ color: oklch(29.3% 0.091 297.3);
Tailwind
colors: {
  custom: {
    50: '#6c5b84',
    500: '#321f53',
    950: '#000000',
  },
}
SCSS
$custom: #321f53;
$custom-light: #6c5b84;
$custom-dark: #000000;
JSON
{
  "hex": "#321f53",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 83
  },
  "hsl": {
    "h": 261.923,
    "s": 45.614,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2931,
    "c": 0.0912,
    "h": 297.3
  },
  "luminance": 0.02283
}

Semantic roles & 50–950 ramp

primary
#321F53
secondary
#708846
accent
#D553A6
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #321F53

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

Preview Lab → · Contrast checker → · Palette generator →

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