#391168#391168

#391168 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.138 H 298.2°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#391168
RGBrgb(57, 17, 104)
HSLhsl(268, 72%, 24%)
HSVhsv(268, 84%, 41%)
CMYKcmyk(45.2%, 83.7%, 0%, 59.2%)
CIE-LABlab(16.85, 37.76, -42.61)
CIE-LCHlch(16.85, 56.93, 311.55°)
OKLaboklab(30.04% 0.0653 -0.122)
OKLCHoklch(30.04% 0.138 298.2)
XYZxyz(4.3858, 2.2702, 13.3011)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391168 #406811
analogous
#111468 #391168 #641168
triadic
#391168 #683911 #116839
tetradic
#391168 #681114 #406811 #116864
square
#391168 #681114 #406811 #116864
split-complementary
#391168 #686411 #146811
monochromatic
#0E041A #1C0833 #391168 #561A9D #7322D1

Accessibility & contrast

On white

14.44
#391168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#391168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391168
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391168#FFFFFF#000000##FFFFFF
##3911681.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002966
Tritanopia (blue-blind)
#2D293D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #391168;
/* rgb */ color: rgb(57, 17, 104);
/* oklch */ color: oklch(30.0% 0.138 298.2);
Tailwind
colors: {
  custom: {
    50: '#755594',
    500: '#391168',
    950: '#000000',
  },
}
SCSS
$custom: #391168;
$custom-light: #755594;
$custom-dark: #000000;
JSON
{
  "hex": "#391168",
  "rgb": {
    "r": 57,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 267.586,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30041,
    "c": 0.13836,
    "h": 298.2
  },
  "luminance": 0.0227
}

Semantic roles & 50–950 ramp

primary
#391168
secondary
#6FA035
accent
#EF399B
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #391168

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

Preview Lab → · Contrast checker → · Palette generator →

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