#321B75#321B75

#321B75 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.143 H 286.8°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#321B75
RGBrgb(50, 27, 117)
HSLhsl(255, 63%, 28%)
HSVhsv(255, 77%, 46%)
CMYKcmyk(57.3%, 76.9%, 0%, 54.1%)
CIE-LABlab(19.00, 35.46, -47.56)
CIE-LCHlch(19.00, 59.32, 306.71°)
OKLaboklab(31.74% 0.0414 -0.1368)
OKLCHoklch(31.74% 0.143 286.8)
XYZxyz(4.9173, 2.7461, 17.0971)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B75 #5E751B
analogous
#1B3175 #321B75 #5F1B75
triadic
#321B75 #75321B #1B7532
tetradic
#321B75 #751B31 #5E751B #1B755F
square
#321B75 #751B31 #5E751B #1B755F
split-complementary
#321B75 #755F1B #31751B
monochromatic
#0B0619 #1D1043 #321B75 #4726A7 #6039D1

Accessibility & contrast

On white

13.56
#321B75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#321B75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B75
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B75#FFFFFF#000000##FFFFFF
##321B751.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003078
Deuteranopia (green-blind)
#002C73
Tritanopia (blue-blind)
#153446
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321b75;
/* rgb */ color: rgb(50, 27, 117);
/* oklch */ color: oklch(31.7% 0.143 286.8);
Tailwind
colors: {
  custom: {
    50: '#725a9e',
    500: '#321b75',
    950: '#000000',
  },
}
SCSS
$custom: #321b75;
$custom-light: #725a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#321b75",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 117
  },
  "hsl": {
    "h": 255.333,
    "s": 62.5,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31743,
    "c": 0.14295,
    "h": 286.8
  },
  "luminance": 0.02746
}

Semantic roles & 50–950 ramp

primary
#321B75
secondary
#8FA942
accent
#E642BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #321B75

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

Preview Lab → · Contrast checker → · Palette generator →

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