#321F69#321F69

#321F69 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.2% C 0.122 H 289.1°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#321F69
RGBrgb(50, 31, 105)
HSLhsl(255, 54%, 27%)
HSVhsv(255, 70%, 41%)
CMYKcmyk(52.4%, 70.5%, 0%, 58.8%)
CIE-LABlab(18.70, 29.32, -40.26)
CIE-LCHlch(18.70, 49.81, 306.07°)
OKLaboklab(31.19% 0.04 -0.1154)
OKLCHoklch(31.19% 0.122 289.1)
XYZxyz(4.3544, 2.6778, 13.6493)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F69 #56691F
analogous
#1F3169 #321F69 #571F69
triadic
#321F69 #69321F #1F6932
tetradic
#321F69 #691F31 #56691F #1F6957
square
#321F69 #691F31 #56691F #1F6957
split-complementary
#321F69 #69571F #31691F
monochromatic
#0B0718 #1C113A #321F69 #482D98 #603DC6

Accessibility & contrast

On white

13.68
#321F69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#321F69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F69
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F69#FFFFFF#000000##FFFFFF
##321F691.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6B
Deuteranopia (green-blind)
#002C68
Tritanopia (blue-blind)
#1F3141
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321f69;
/* rgb */ color: rgb(50, 31, 105);
/* oklch */ color: oklch(31.2% 0.122 289.1);
Tailwind
colors: {
  custom: {
    50: '#705c95',
    500: '#321f69',
    950: '#000000',
  },
}
SCSS
$custom: #321f69;
$custom-light: #705c95;
$custom-dark: #000000;
JSON
{
  "hex": "#321f69",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 105
  },
  "hsl": {
    "h": 255.405,
    "s": 54.412,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31186,
    "c": 0.12218,
    "h": 289.1
  },
  "luminance": 0.02678
}

Semantic roles & 50–950 ramp

primary
#321F69
secondary
#879D47
accent
#DE4AB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321F69

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

Preview Lab → · Contrast checker → · Palette generator →

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