#321F68#321F68

#321F68 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.1% C 0.121 H 289.4°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#321F68
RGBrgb(50, 31, 104)
HSLhsl(256, 54%, 26%)
HSVhsv(256, 70%, 41%)
CMYKcmyk(51.9%, 70.2%, 0%, 59.2%)
CIE-LABlab(18.62, 29.00, -39.75)
CIE-LCHlch(18.62, 49.21, 306.11°)
OKLaboklab(31.09% 0.0402 -0.1139)
OKLCHoklch(31.09% 0.121 289.4)
XYZxyz(4.3034, 2.6574, 13.3802)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F68 #55681F
analogous
#1F3168 #321F68 #571F68
triadic
#321F68 #68321F #1F6832
tetradic
#321F68 #681F31 #55681F #1F6857
square
#321F68 #681F31 #55681F #1F6857
split-complementary
#321F68 #68571F #31681F
monochromatic
#0B0718 #1B1139 #321F68 #492D97 #603CC5

Accessibility & contrast

On white

13.71
#321F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#321F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F68
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F68#FFFFFF#000000##FFFFFF
##321F681.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#002C67
Tritanopia (blue-blind)
#203140
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321f68;
/* rgb */ color: rgb(50, 31, 104);
/* oklch */ color: oklch(31.1% 0.121 289.4);
Tailwind
colors: {
  custom: {
    50: '#705c94',
    500: '#321f68',
    950: '#000000',
  },
}
SCSS
$custom: #321f68;
$custom-light: #705c94;
$custom-dark: #000000;
JSON
{
  "hex": "#321f68",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 104
  },
  "hsl": {
    "h": 255.616,
    "s": 54.074,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31094,
    "c": 0.12081,
    "h": 289.4
  },
  "luminance": 0.02658
}

Semantic roles & 50–950 ramp

primary
#321F68
secondary
#869C46
accent
#DD4AB7
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321F68

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

Preview Lab → · Contrast checker → · Palette generator →

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