#321B67#321B67

#321B67 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.125 H 290.9°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#321B67
RGBrgb(50, 27, 103)
HSLhsl(258, 58%, 25%)
HSVhsv(258, 74%, 40%)
CMYKcmyk(51.5%, 73.8%, 0%, 59.6%)
CIE-LABlab(17.65, 31.09, -40.67)
CIE-LCHlch(17.65, 51.19, 307.40°)
OKLaboklab(30.37% 0.0447 -0.1166)
OKLCHoklch(30.37% 0.125 290.9)
XYZxyz(4.1548, 2.4411, 13.0816)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B67 #50671B
analogous
#1B2A67 #321B67 #581B67
triadic
#321B67 #67321B #1B6732
tetradic
#321B67 #671B2A #50671B #1B6758
square
#321B67 #671B2A #50671B #1B6758
split-complementary
#321B67 #67581B #2A671B
monochromatic
#0C0618 #1A0E37 #321B67 #4A2897 #6134C8

Accessibility & contrast

On white

14.11
#321B67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321B67
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B67#FFFFFF#000000##FFFFFF
##321B671.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D69
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#212E3F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321b67;
/* rgb */ color: rgb(50, 27, 103);
/* oklch */ color: oklch(30.4% 0.125 290.9);
Tailwind
colors: {
  custom: {
    50: '#705993',
    500: '#321b67',
    950: '#000000',
  },
}
SCSS
$custom: #321b67;
$custom-light: #705993;
$custom-dark: #000000;
JSON
{
  "hex": "#321b67",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 103
  },
  "hsl": {
    "h": 258.158,
    "s": 58.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30374,
    "c": 0.12488,
    "h": 290.9
  },
  "luminance": 0.02441
}

Semantic roles & 50–950 ramp

primary
#321B67
secondary
#819C42
accent
#E246B3
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321B67

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

Preview Lab → · Contrast checker → · Palette generator →

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