#321458#321458

#321458 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.115 H 298.8°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#321458
RGBrgb(50, 20, 88)
HSLhsl(266, 63%, 21%)
HSVhsv(266, 77%, 35%)
CMYKcmyk(43.2%, 77.3%, 0%, 65.5%)
CIE-LABlab(14.86, 30.53, -35.24)
CIE-LCHlch(14.86, 46.63, 310.90°)
OKLaboklab(27.96% 0.0554 -0.1006)
OKLCHoklch(27.96% 0.115 298.8)
XYZxyz(3.3266, 1.8830, 9.4188)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321458 #3A5814
analogous
#141858 #321458 #541458
triadic
#321458 #583214 #145832
tetradic
#321458 #581418 #3A5814 #145854
square
#321458 #581418 #3A5814 #145854
split-complementary
#321458 #585414 #185814
monochromatic
#0E0619 #160926 #321458 #4E1F8A #6B2BBC

Accessibility & contrast

On white

15.25
#321458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#321458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321458
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321458#FFFFFF#000000##FFFFFF
##3214581.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#292534
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321458;
/* rgb */ color: rgb(50, 20, 88);
/* oklch */ color: oklch(28.0% 0.115 298.8);
Tailwind
colors: {
  custom: {
    50: '#6e5488',
    500: '#321458',
    950: '#000000',
  },
}
SCSS
$custom: #321458;
$custom-light: #6e5488;
$custom-dark: #000000;
JSON
{
  "hex": "#321458",
  "rgb": {
    "r": 50,
    "g": 20,
    "b": 88
  },
  "hsl": {
    "h": 266.471,
    "s": 62.963,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27963,
    "c": 0.11489,
    "h": 298.8
  },
  "luminance": 0.01883
}

Semantic roles & 50–950 ramp

primary
#321458
secondary
#699038
accent
#E6429E
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321458

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

Preview Lab → · Contrast checker → · Palette generator →

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