#321E60#321E60

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

Color values

HEX#321E60
RGBrgb(50, 30, 96)
HSLhsl(258, 52%, 25%)
HSVhsv(258, 69%, 38%)
CMYKcmyk(47.9%, 68.7%, 0%, 62.4%)
CIE-LABlab(17.70, 27.07, -35.98)
CIE-LCHlch(17.70, 45.03, 306.96°)
OKLaboklab(30.21% 0.0424 -0.1028)
OKLCHoklch(30.21% 0.111 292.4)
XYZxyz(3.8904, 2.4511, 11.3322)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E60 #4C601E
analogous
#1E2B60 #321E60 #531E60
triadic
#321E60 #60321E #1E6032
tetradic
#321E60 #601E2B #4C601E #1E6053
square
#321E60 #601E2B #4C601E #1E6053
split-complementary
#321E60 #60531E #2B601E
monochromatic
#0C0717 #1A0F31 #321E60 #4A2D8F #633BBD

Accessibility & contrast

On white

14.09
#321E60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#321E60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E60
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E60#FFFFFF#000000##FFFFFF
##321E601.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C62
Deuteranopia (green-blind)
#002A5F
Tritanopia (blue-blind)
#252E3C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321e60;
/* rgb */ color: rgb(50, 30, 96);
/* oklch */ color: oklch(30.2% 0.111 292.4);
Tailwind
colors: {
  custom: {
    50: '#6e5b8e',
    500: '#321e60',
    950: '#000000',
  },
}
SCSS
$custom: #321e60;
$custom-light: #6e5b8e;
$custom-dark: #000000;
JSON
{
  "hex": "#321e60",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 96
  },
  "hsl": {
    "h": 258.182,
    "s": 52.381,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30214,
    "c": 0.11124,
    "h": 292.4
  },
  "luminance": 0.02451
}

Semantic roles & 50–950 ramp

primary
#321E60
secondary
#7D9545
accent
#DC4CB0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #321E60

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

Preview Lab → · Contrast checker → · Palette generator →

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