#321456#321456

#321456 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.8% C 0.112 H 299.8°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#321456
RGBrgb(50, 20, 86)
HSLhsl(267, 62%, 21%)
HSVhsv(267, 77%, 34%)
CMYKcmyk(41.9%, 76.7%, 0%, 66.3%)
CIE-LABlab(14.68, 29.95, -34.19)
CIE-LCHlch(14.68, 45.45, 311.23°)
OKLaboklab(27.78% 0.0558 -0.0975)
OKLCHoklch(27.78% 0.112 299.8)
XYZxyz(3.2448, 1.8503, 8.9885)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321456 #385614
analogous
#141756 #321456 #531456
triadic
#321456 #563214 #145632
tetradic
#321456 #561417 #385614 #145653
square
#321456 #561417 #385614 #145653
split-complementary
#321456 #565314 #175614
monochromatic
#0E0619 #150824 #321456 #4F2088 #6C2BB9

Accessibility & contrast

On white

15.33
#321456 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321456
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321456#FFFFFF#000000##FFFFFF
##3214561.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#2A2433
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321456;
/* rgb */ color: rgb(50, 20, 86);
/* oklch */ color: oklch(27.8% 0.112 299.8);
Tailwind
colors: {
  custom: {
    50: '#6e5486',
    500: '#321456',
    950: '#000000',
  },
}
SCSS
$custom: #321456;
$custom-light: #6e5486;
$custom-dark: #000000;
JSON
{
  "hex": "#321456",
  "rgb": {
    "r": 50,
    "g": 20,
    "b": 86
  },
  "hsl": {
    "h": 267.273,
    "s": 62.264,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27779,
    "c": 0.11239,
    "h": 299.8
  },
  "luminance": 0.0185
}

Semantic roles & 50–950 ramp

primary
#321456
secondary
#678E38
accent
#E5429B
background
#F6F5F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321456

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

Preview Lab → · Contrast checker → · Palette generator →

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