#321457#321457

#321457 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.114 H 299.3°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#321457
RGBrgb(50, 20, 87)
HSLhsl(267, 63%, 21%)
HSVhsv(267, 77%, 34%)
CMYKcmyk(42.5%, 77%, 0%, 65.9%)
CIE-LABlab(14.77, 30.24, -34.72)
CIE-LCHlch(14.77, 46.04, 311.06°)
OKLaboklab(27.87% 0.0556 -0.0991)
OKLCHoklch(27.87% 0.114 299.3)
XYZxyz(3.2854, 1.8665, 9.2022)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321457 #395714
analogous
#141757 #321457 #531457
triadic
#321457 #573214 #145732
tetradic
#321457 #571417 #395714 #145753
square
#321457 #571417 #395714 #145753
split-complementary
#321457 #575314 #175714
monochromatic
#0E0619 #150925 #321457 #4F1F89 #6B2BBB

Accessibility & contrast

On white

15.29
#321457 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#321457 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321457
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321457#FFFFFF#000000##FFFFFF
##3214571.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#292534
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321457;
/* rgb */ color: rgb(50, 20, 87);
/* oklch */ color: oklch(27.9% 0.114 299.3);
Tailwind
colors: {
  custom: {
    50: '#6e5487',
    500: '#321457',
    950: '#000000',
  },
}
SCSS
$custom: #321457;
$custom-light: #6e5487;
$custom-dark: #000000;
JSON
{
  "hex": "#321457",
  "rgb": {
    "r": 50,
    "g": 20,
    "b": 87
  },
  "hsl": {
    "h": 266.866,
    "s": 62.617,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27871,
    "c": 0.11364,
    "h": 299.3
  },
  "luminance": 0.01867
}

Semantic roles & 50–950 ramp

primary
#321457
secondary
#688F38
accent
#E6429C
background
#F6F5F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321457

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

Preview Lab → · Contrast checker → · Palette generator →

#321457 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva