#321F67#321F67

#321F67 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 31.0% C 0.119 H 289.7°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#321F67
RGBrgb(50, 31, 103)
HSLhsl(256, 54%, 26%)
HSVhsv(256, 70%, 40%)
CMYKcmyk(51.5%, 69.9%, 0%, 59.6%)
CIE-LABlab(18.53, 28.68, -39.24)
CIE-LCHlch(18.53, 48.60, 306.16°)
OKLaboklab(31% 0.0403 -0.1124)
OKLCHoklch(31% 0.119 289.7)
XYZxyz(4.2529, 2.6372, 13.1143)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F67 #54671F
analogous
#1F3067 #321F67 #561F67
triadic
#321F67 #67321F #1F6732
tetradic
#321F67 #671F30 #54671F #1F6756
square
#321F67 #671F30 #54671F #1F6756
split-complementary
#321F67 #67561F #30671F
monochromatic
#0B0718 #1B1138 #321F67 #492D96 #603CC4

Accessibility & contrast

On white

13.75
#321F67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321F67
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F67#FFFFFF#000000##FFFFFF
##321F671.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321f67;
/* rgb */ color: rgb(50, 31, 103);
/* oklch */ color: oklch(31.0% 0.119 289.7);
Tailwind
colors: {
  custom: {
    50: '#6f5c93',
    500: '#321f67',
    950: '#000000',
  },
}
SCSS
$custom: #321f67;
$custom-light: #6f5c93;
$custom-dark: #000000;
JSON
{
  "hex": "#321f67",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 103
  },
  "hsl": {
    "h": 255.833,
    "s": 53.731,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31004,
    "c": 0.11944,
    "h": 289.7
  },
  "luminance": 0.02637
}

Semantic roles & 50–950 ramp

primary
#321F67
secondary
#859B46
accent
#DD4BB6
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321F67

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

Preview Lab → · Contrast checker → · Palette generator →

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