#321E63#321E63

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

Color values

HEX#321E63
RGBrgb(50, 30, 99)
HSLhsl(257, 53%, 25%)
HSVhsv(257, 70%, 39%)
CMYKcmyk(49.5%, 69.7%, 0%, 61.2%)
CIE-LABlab(17.95, 28.02, -37.55)
CIE-LCHlch(17.95, 46.85, 306.74°)
OKLaboklab(30.48% 0.042 -0.1075)
OKLCHoklch(30.48% 0.115 291.4)
XYZxyz(4.0312, 2.5074, 12.0735)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E63 #4F631E
analogous
#1E2D63 #321E63 #541E63
triadic
#321E63 #63321E #1E6332
tetradic
#321E63 #631E2D #4F631E #1E6354
square
#321E63 #631E2D #4F631E #1E6354
split-complementary
#321E63 #63541E #2D631E
monochromatic
#0C0717 #1A1034 #321E63 #4A2C92 #613AC1

Accessibility & contrast

On white

13.99
#321E63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321E63
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E63#FFFFFF#000000##FFFFFF
##321E631.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321e63;
/* rgb */ color: rgb(50, 30, 99);
/* oklch */ color: oklch(30.5% 0.115 291.4);
Tailwind
colors: {
  custom: {
    50: '#6f5b90',
    500: '#321e63',
    950: '#000000',
  },
}
SCSS
$custom: #321e63;
$custom-light: #6f5b90;
$custom-dark: #000000;
JSON
{
  "hex": "#321e63",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 99
  },
  "hsl": {
    "h": 257.391,
    "s": 53.488,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30479,
    "c": 0.11538,
    "h": 291.4
  },
  "luminance": 0.02508
}

Semantic roles & 50–950 ramp

primary
#321E63
secondary
#809845
accent
#DD4BB3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #321E63

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

Preview Lab → · Contrast checker → · Palette generator →

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