#321B57#321B57

#321B57 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.103 H 297.1°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#321B57
RGBrgb(50, 27, 87)
HSLhsl(263, 53%, 22%)
HSVhsv(263, 69%, 34%)
CMYKcmyk(42.5%, 69%, 0%, 65.9%)
CIE-LABlab(16.26, 26.15, -32.31)
CIE-LCHlch(16.26, 41.56, 308.99°)
OKLaboklab(28.94% 0.0471 -0.092)
OKLCHoklch(28.94% 0.103 297.1)
XYZxyz(3.4272, 2.1500, 9.2494)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B57 #40571B
analogous
#1B2257 #321B57 #501B57
triadic
#321B57 #57321B #1B5732
tetradic
#321B57 #571B22 #40571B #1B5750
square
#321B57 #571B22 #40571B #1B5750
split-complementary
#321B57 #57501B #22571B
monochromatic
#0D0717 #170D28 #321B57 #4D2986 #6838B4

Accessibility & contrast

On white

14.69
#321B57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#321B57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B57
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B57#FFFFFF#000000##FFFFFF
##321B571.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#002856
Tritanopia (blue-blind)
#292936
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321b57;
/* rgb */ color: rgb(50, 27, 87);
/* oklch */ color: oklch(28.9% 0.103 297.1);
Tailwind
colors: {
  custom: {
    50: '#6d5987',
    500: '#321b57',
    950: '#000000',
  },
}
SCSS
$custom: #321b57;
$custom-light: #6d5987;
$custom-dark: #000000;
JSON
{
  "hex": "#321b57",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 87
  },
  "hsl": {
    "h": 263,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28936,
    "c": 0.1034,
    "h": 297.1
  },
  "luminance": 0.0215
}

Semantic roles & 50–950 ramp

primary
#321B57
secondary
#708D41
accent
#DC4CA5
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321B57

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

Preview Lab → · Contrast checker → · Palette generator →

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