#321358#321358

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

Color values

HEX#321358
RGBrgb(50, 19, 88)
HSLhsl(267, 64%, 21%)
HSVhsv(267, 78%, 35%)
CMYKcmyk(43.2%, 78.4%, 0%, 65.5%)
CIE-LABlab(14.67, 31.07, -35.55)
CIE-LCHlch(14.67, 47.22, 311.15°)
OKLaboklab(27.83% 0.0565 -0.1016)
OKLCHoklch(27.83% 0.116 299.1)
XYZxyz(3.3093, 1.8484, 9.4131)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321358 #395813
analogous
#131658 #321358 #541358
triadic
#321358 #583213 #135832
tetradic
#321358 #581316 #395813 #135854
square
#321358 #581316 #395813 #135854
split-complementary
#321358 #585413 #165813
monochromatic
#0E0519 #150826 #321358 #4F1E8A #6B29BD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##321358#FFFFFF#000000##FFFFFF
##3213581.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)
#00255A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#292434
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321358;
/* rgb */ color: rgb(50, 19, 88);
/* oklch */ color: oklch(27.8% 0.116 299.1);
Tailwind
colors: {
  custom: {
    50: '#6e5488',
    500: '#321358',
    950: '#000000',
  },
}
SCSS
$custom: #321358;
$custom-light: #6e5488;
$custom-dark: #000000;
JSON
{
  "hex": "#321358",
  "rgb": {
    "r": 50,
    "g": 19,
    "b": 88
  },
  "hsl": {
    "h": 266.957,
    "s": 64.486,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27828,
    "c": 0.11621,
    "h": 299.1
  },
  "luminance": 0.01848
}

Semantic roles & 50–950 ramp

primary
#321358
secondary
#689037
accent
#E7409C
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321358

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

Preview Lab → · Contrast checker → · Palette generator →

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