#321454#321454

#321454 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.110 H 300.8°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#321454
RGBrgb(50, 20, 84)
HSLhsl(268, 62%, 20%)
HSVhsv(268, 76%, 33%)
CMYKcmyk(40.5%, 76.2%, 0%, 67.1%)
CIE-LABlab(14.50, 29.38, -33.12)
CIE-LCHlch(14.50, 44.27, 311.58°)
OKLaboklab(27.6% 0.0562 -0.0944)
OKLCHoklch(27.6% 0.11 300.8)
XYZxyz(3.1654, 1.8185, 8.5700)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321454 #365414
analogous
#141654 #321454 #521454
triadic
#321454 #543214 #145432
tetradic
#321454 #541416 #365414 #145452
square
#321454 #541416 #365414 #145452
split-complementary
#321454 #545214 #165414
monochromatic
#0F0619 #150823 #321454 #4F2085 #6D2CB7

Accessibility & contrast

On white

15.40
#321454 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#321454 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321454
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321454#FFFFFF#000000##FFFFFF
##3214541.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002456
Deuteranopia (green-blind)
#002453
Tritanopia (blue-blind)
#2B2332
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321454;
/* rgb */ color: rgb(50, 20, 84);
/* oklch */ color: oklch(27.6% 0.110 300.8);
Tailwind
colors: {
  custom: {
    50: '#6e5485',
    500: '#321454',
    950: '#000000',
  },
}
SCSS
$custom: #321454;
$custom-light: #6e5485;
$custom-dark: #000000;
JSON
{
  "hex": "#321454",
  "rgb": {
    "r": 50,
    "g": 20,
    "b": 84
  },
  "hsl": {
    "h": 268.125,
    "s": 61.538,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27598,
    "c": 0.10988,
    "h": 300.8
  },
  "luminance": 0.01819
}

Semantic roles & 50–950 ramp

primary
#321454
secondary
#658C38
accent
#E54399
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321454

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

Preview Lab → · Contrast checker → · Palette generator →

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