#321B5F#321B5F

#321B5F is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.6% C 0.114 H 293.8°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#321B5F
RGBrgb(50, 27, 95)
HSLhsl(260, 56%, 24%)
HSVhsv(260, 72%, 37%)
CMYKcmyk(47.4%, 71.6%, 0%, 62.7%)
CIE-LABlab(16.93, 28.61, -36.56)
CIE-LCHlch(16.93, 46.42, 308.04°)
OKLaboklab(29.64% 0.0461 -0.1045)
OKLCHoklch(29.64% 0.114 293.8)
XYZxyz(3.7723, 2.2881, 11.0671)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B5F #485F1B
analogous
#1B265F #321B5F #541B5F
triadic
#321B5F #5F321B #1B5F32
tetradic
#321B5F #5F1B26 #485F1B #1B5F54
square
#321B5F #5F1B26 #485F1B #1B5F54
split-complementary
#321B5F #5F541B #265F1B
monochromatic
#0D0718 #190D2F #321B5F #4B298F #6436BE

Accessibility & contrast

On white

14.41
#321B5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321B5F
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B5F#FFFFFF#000000##FFFFFF
##321B5F1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#00295E
Tritanopia (blue-blind)
#252B3A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321b5f;
/* rgb */ color: rgb(50, 27, 95);
/* oklch */ color: oklch(29.6% 0.114 293.8);
Tailwind
colors: {
  custom: {
    50: '#6e598d',
    500: '#321b5f',
    950: '#000000',
  },
}
SCSS
$custom: #321b5f;
$custom-light: #6e598d;
$custom-dark: #000000;
JSON
{
  "hex": "#321b5f",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 95
  },
  "hsl": {
    "h": 260.294,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29636,
    "c": 0.11426,
    "h": 293.8
  },
  "luminance": 0.02288
}

Semantic roles & 50–950 ramp

primary
#321B5F
secondary
#789541
accent
#DF49AC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #321B5F

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

Preview Lab → · Contrast checker → · Palette generator →

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