#321158#321158

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

Color values

HEX#321158
RGBrgb(50, 17, 88)
HSLhsl(268, 68%, 21%)
HSVhsv(268, 81%, 35%)
CMYKcmyk(43.2%, 80.7%, 0%, 65.5%)
CIE-LABlab(14.31, 32.10, -36.15)
CIE-LCHlch(14.31, 48.34, 311.60°)
OKLaboklab(27.57% 0.0586 -0.1033)
OKLCHoklch(27.57% 0.119 299.6)
XYZxyz(3.2768, 1.7835, 9.4022)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321158 #375811
analogous
#111458 #321158 #551158
triadic
#321158 #583211 #115832
tetradic
#321158 #581114 #375811 #115855
square
#321158 #581114 #375811 #115855
split-complementary
#321158 #585511 #145811
monochromatic
#0F051A #150725 #321158 #4F1B8B #6C25BF

Accessibility & contrast

On white

15.48
#321158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321158
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321158#FFFFFF#000000##FFFFFF
##3211581.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321158;
/* rgb */ color: rgb(50, 17, 88);
/* oklch */ color: oklch(27.6% 0.119 299.6);
Tailwind
colors: {
  custom: {
    50: '#6e5388',
    500: '#321158',
    950: '#000000',
  },
}
SCSS
$custom: #321158;
$custom-light: #6e5388;
$custom-dark: #000000;
JSON
{
  "hex": "#321158",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 267.887,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27572,
    "c": 0.11874,
    "h": 299.6
  },
  "luminance": 0.01784
}

Semantic roles & 50–950 ramp

primary
#321158
secondary
#669134
accent
#EA3D9A
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020B
muted
#7B787C

Preview Lab

Preview with #321158

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

Preview Lab → · Contrast checker → · Palette generator →

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