#321F65#321F65

#321F65 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.8% C 0.117 H 290.3°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#321F65
RGBrgb(50, 31, 101)
HSLhsl(256, 53%, 26%)
HSVhsv(256, 69%, 40%)
CMYKcmyk(50.5%, 69.3%, 0%, 60.4%)
CIE-LABlab(18.35, 28.04, -38.21)
CIE-LCHlch(18.35, 47.39, 306.27°)
OKLaboklab(30.82% 0.0406 -0.1094)
OKLCHoklch(30.82% 0.117 290.3)
XYZxyz(4.1537, 2.5975, 12.5919)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F65 #52651F
analogous
#1F2F65 #321F65 #551F65
triadic
#321F65 #65321F #1F6532
tetradic
#321F65 #651F2F #52651F #1F6555
square
#321F65 #651F2F #52651F #1F6555
split-complementary
#321F65 #65551F #2F651F
monochromatic
#0C0717 #1B1136 #321F65 #492D94 #603CC3

Accessibility & contrast

On white

13.82
#321F65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#321F65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F65
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F65#FFFFFF#000000##FFFFFF
##321F651.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E67
Deuteranopia (green-blind)
#002B64
Tritanopia (blue-blind)
#22303F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321f65;
/* rgb */ color: rgb(50, 31, 101);
/* oklch */ color: oklch(30.8% 0.117 290.3);
Tailwind
colors: {
  custom: {
    50: '#6f5c91',
    500: '#321f65',
    950: '#000000',
  },
}
SCSS
$custom: #321f65;
$custom-light: #6f5c91;
$custom-dark: #000000;
JSON
{
  "hex": "#321f65",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 101
  },
  "hsl": {
    "h": 256.286,
    "s": 53.03,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30824,
    "c": 0.11669,
    "h": 290.3
  },
  "luminance": 0.02598
}

Semantic roles & 50–950 ramp

primary
#321F65
secondary
#839946
accent
#DC4BB5
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321F65

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

Preview Lab → · Contrast checker → · Palette generator →

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