#321E58#321E58

#321E58 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.5% C 0.100 H 295.5°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#321E58
RGBrgb(50, 30, 88)
HSLhsl(261, 49%, 23%)
HSVhsv(261, 66%, 35%)
CMYKcmyk(43.2%, 65.9%, 0%, 65.5%)
CIE-LABlab(17.04, 24.56, -31.71)
CIE-LCHlch(17.04, 40.11, 307.77°)
OKLaboklab(29.53% 0.0431 -0.0903)
OKLCHoklch(29.53% 0.1 295.5)
XYZxyz(3.5407, 2.3112, 9.4902)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E58 #44581E
analogous
#1E2758 #321E58 #4F1E58
triadic
#321E58 #58321E #1E5832
tetradic
#321E58 #581E27 #44581E #1E584F
square
#321E58 #581E27 #44581E #1E584F
split-complementary
#321E58 #584F1E #27581E
monochromatic
#0D0817 #180E2A #321E58 #4C2E86 #663DB3

Accessibility & contrast

On white

14.36
#321E58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321E58
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E58#FFFFFF#000000##FFFFFF
##321E581.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5A
Deuteranopia (green-blind)
#022957
Tritanopia (blue-blind)
#282B37
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321e58;
/* rgb */ color: rgb(50, 30, 88);
/* oklch */ color: oklch(29.5% 0.100 295.5);
Tailwind
colors: {
  custom: {
    50: '#6d5b88',
    500: '#321e58',
    950: '#000000',
  },
}
SCSS
$custom: #321e58;
$custom-light: #6d5b88;
$custom-dark: #000000;
JSON
{
  "hex": "#321e58",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 88
  },
  "hsl": {
    "h": 260.69,
    "s": 49.153,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29532,
    "c": 0.10003,
    "h": 295.5
  },
  "luminance": 0.02311
}

Semantic roles & 50–950 ramp

primary
#321E58
secondary
#748D45
accent
#D94FA9
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #321E58

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

Preview Lab → · Contrast checker → · Palette generator →

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