#321E57#321E57

#321E57 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.4% C 0.099 H 295.9°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#321E57
RGBrgb(50, 30, 87)
HSLhsl(261, 49%, 23%)
HSVhsv(261, 66%, 34%)
CMYKcmyk(42.5%, 65.5%, 0%, 65.9%)
CIE-LABlab(16.96, 24.25, -31.16)
CIE-LCHlch(16.96, 39.49, 307.90°)
OKLaboklab(29.45% 0.0431 -0.0887)
OKLCHoklch(29.45% 0.099 295.9)
XYZxyz(3.4995, 2.2947, 9.2735)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E57 #43571E
analogous
#1E2657 #321E57 #4E1E57
triadic
#321E57 #57321E #1E5732
tetradic
#321E57 #571E26 #43571E #1E574E
square
#321E57 #571E26 #43571E #1E574E
split-complementary
#321E57 #574E1E #26571E
monochromatic
#0D0817 #180E29 #321E57 #4C2E85 #663DB2

Accessibility & contrast

On white

14.39
#321E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#321E57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E57
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E57#FFFFFF#000000##FFFFFF
##321E571.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#042956
Tritanopia (blue-blind)
#292A37
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321e57;
/* rgb */ color: rgb(50, 30, 87);
/* oklch */ color: oklch(29.4% 0.099 295.9);
Tailwind
colors: {
  custom: {
    50: '#6d5b87',
    500: '#321e57',
    950: '#000000',
  },
}
SCSS
$custom: #321e57;
$custom-light: #6d5b87;
$custom-dark: #000000;
JSON
{
  "hex": "#321e57",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 87
  },
  "hsl": {
    "h": 261.053,
    "s": 48.718,
    "l": 22.941
  },
  "oklch": {
    "l": 0.2945,
    "c": 0.09861,
    "h": 295.9
  },
  "luminance": 0.02295
}

Semantic roles & 50–950 ramp

primary
#321E57
secondary
#738C45
accent
#D850A8
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #321E57

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

Preview Lab → · Contrast checker → · Palette generator →

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