#321F63#321F63

#321F63 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.6% C 0.114 H 291.0°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#321F63
RGBrgb(50, 31, 99)
HSLhsl(257, 52%, 25%)
HSVhsv(257, 69%, 39%)
CMYKcmyk(49.5%, 68.7%, 0%, 61.2%)
CIE-LABlab(18.18, 27.40, -37.17)
CIE-LCHlch(18.18, 46.18, 306.39°)
OKLaboklab(30.65% 0.0408 -0.1064)
OKLCHoklch(30.65% 0.114 291)
XYZxyz(4.0569, 2.5588, 12.0821)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F63 #50631F
analogous
#1F2E63 #321F63 #541F63
triadic
#321F63 #63321F #1F6332
tetradic
#321F63 #631F2E #50631F #1F6354
square
#321F63 #631F2E #50631F #1F6354
split-complementary
#321F63 #63541F #2E631F
monochromatic
#0C0717 #1A1034 #321F63 #4A2E92 #613CC0

Accessibility & contrast

On white

13.89
#321F63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#321F63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F63
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F63#FFFFFF#000000##FFFFFF
##321F631.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E65
Deuteranopia (green-blind)
#002B62
Tritanopia (blue-blind)
#232F3E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321f63;
/* rgb */ color: rgb(50, 31, 99);
/* oklch */ color: oklch(30.6% 0.114 291.0);
Tailwind
colors: {
  custom: {
    50: '#6f5c90',
    500: '#321f63',
    950: '#000000',
  },
}
SCSS
$custom: #321f63;
$custom-light: #6f5c90;
$custom-dark: #000000;
JSON
{
  "hex": "#321f63",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 99
  },
  "hsl": {
    "h": 256.765,
    "s": 52.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30646,
    "c": 0.11393,
    "h": 291
  },
  "luminance": 0.02559
}

Semantic roles & 50–950 ramp

primary
#321F63
secondary
#819846
accent
#DC4CB4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #321F63

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

Preview Lab → · Contrast checker → · Palette generator →

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