#321F61#321F61

#321F61 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.5% C 0.111 H 291.7°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#321F61
RGBrgb(50, 31, 97)
HSLhsl(257, 52%, 25%)
HSVhsv(257, 68%, 38%)
CMYKcmyk(48.5%, 68%, 0%, 62%)
CIE-LABlab(18.01, 26.76, -36.13)
CIE-LCHlch(18.01, 44.96, 306.53°)
OKLaboklab(30.47% 0.0411 -0.1033)
OKLCHoklch(30.47% 0.111 291.7)
XYZxyz(3.9624, 2.5210, 11.5848)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F61 #4E611F
analogous
#1F2D61 #321F61 #531F61
triadic
#321F61 #61321F #1F6132
tetradic
#321F61 #611F2D #4E611F #1F6153
square
#321F61 #611F2D #4E611F #1F6153
split-complementary
#321F61 #61531F #2D611F
monochromatic
#0C0717 #1A1033 #321F61 #4A2E8F #623DBE

Accessibility & contrast

On white

13.96
#321F61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#321F61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F61
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F61#FFFFFF#000000##FFFFFF
##321F611.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D63
Deuteranopia (green-blind)
#002B60
Tritanopia (blue-blind)
#242F3D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321f61;
/* rgb */ color: rgb(50, 31, 97);
/* oklch */ color: oklch(30.5% 0.111 291.7);
Tailwind
colors: {
  custom: {
    50: '#6e5c8e',
    500: '#321f61',
    950: '#000000',
  },
}
SCSS
$custom: #321f61;
$custom-light: #6e5c8e;
$custom-dark: #000000;
JSON
{
  "hex": "#321f61",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 97
  },
  "hsl": {
    "h": 257.273,
    "s": 51.563,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3047,
    "c": 0.11114,
    "h": 291.7
  },
  "luminance": 0.02521
}

Semantic roles & 50–950 ramp

primary
#321F61
secondary
#7F9646
accent
#DB4DB2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #321F61

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

Preview Lab → · Contrast checker → · Palette generator →

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