#321F62#321F62

#321F62 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.6% C 0.113 H 291.3°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#321F62
RGBrgb(50, 31, 98)
HSLhsl(257, 52%, 25%)
HSVhsv(257, 68%, 38%)
CMYKcmyk(49%, 68.4%, 0%, 61.6%)
CIE-LABlab(18.10, 27.08, -36.65)
CIE-LCHlch(18.10, 45.57, 306.46°)
OKLaboklab(30.56% 0.041 -0.1048)
OKLCHoklch(30.56% 0.113 291.3)
XYZxyz(4.0094, 2.5398, 11.8319)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F62 #4F621F
analogous
#1F2D62 #321F62 #531F62
triadic
#321F62 #62321F #1F6232
tetradic
#321F62 #621F2D #4F621F #1F6253
square
#321F62 #621F2D #4F621F #1F6253
split-complementary
#321F62 #62531F #2D621F
monochromatic
#0C0717 #1A1034 #321F62 #4A2E90 #613CBF

Accessibility & contrast

On white

13.93
#321F62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321F62
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F62#FFFFFF#000000##FFFFFF
##321F621.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D64
Deuteranopia (green-blind)
#002B61
Tritanopia (blue-blind)
#232F3D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321f62;
/* rgb */ color: rgb(50, 31, 98);
/* oklch */ color: oklch(30.6% 0.113 291.3);
Tailwind
colors: {
  custom: {
    50: '#6f5c8f',
    500: '#321f62',
    950: '#000000',
  },
}
SCSS
$custom: #321f62;
$custom-light: #6f5c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#321f62",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 98
  },
  "hsl": {
    "h": 257.015,
    "s": 51.938,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30558,
    "c": 0.11254,
    "h": 291.3
  },
  "luminance": 0.0254
}

Semantic roles & 50–950 ramp

primary
#321F62
secondary
#809746
accent
#DB4CB3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #321F62

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

Preview Lab → · Contrast checker → · Palette generator →

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