#321058#321058

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

Color values

HEX#321058
RGBrgb(50, 16, 88)
HSLhsl(268, 69%, 20%)
HSVhsv(268, 82%, 35%)
CMYKcmyk(43.2%, 81.8%, 0%, 65.5%)
CIE-LABlab(14.13, 32.59, -36.43)
CIE-LCHlch(14.13, 48.88, 311.82°)
OKLaboklab(27.45% 0.0596 -0.1041)
OKLCHoklch(27.45% 0.12 299.8)
XYZxyz(3.2617, 1.7532, 9.3972)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321058 #365810
analogous
#101258 #321058 #561058
triadic
#321058 #583210 #105832
tetradic
#321058 #581012 #365810 #105856
square
#321058 #581012 #365810 #105856
split-complementary
#321058 #585610 #125810
monochromatic
#0F051A #150724 #321058 #4F198C #6D23C0

Accessibility & contrast

On white

15.55
#321058 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#321058 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321058
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321058#FFFFFF#000000##FFFFFF
##3210581.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#292333
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #321058;
/* rgb */ color: rgb(50, 16, 88);
/* oklch */ color: oklch(27.5% 0.120 299.8);
Tailwind
colors: {
  custom: {
    50: '#6e5288',
    500: '#321058',
    950: '#000000',
  },
}
SCSS
$custom: #321058;
$custom-light: #6e5288;
$custom-dark: #000000;
JSON
{
  "hex": "#321058",
  "rgb": {
    "r": 50,
    "g": 16,
    "b": 88
  },
  "hsl": {
    "h": 268.333,
    "s": 69.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27451,
    "c": 0.11995,
    "h": 299.8
  },
  "luminance": 0.01753
}

Semantic roles & 50–950 ramp

primary
#321058
secondary
#659132
accent
#EC3C99
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020B
muted
#7B787C

Preview Lab

Preview with #321058

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

Preview Lab → · Contrast checker → · Palette generator →

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