#391868#391868

#391868 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.130 H 296.8°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#391868
RGBrgb(57, 24, 104)
HSLhsl(265, 63%, 25%)
HSVhsv(265, 77%, 41%)
CMYKcmyk(45.2%, 76.9%, 0%, 59.2%)
CIE-LABlab(18.02, 34.40, -40.69)
CIE-LCHlch(18.02, 53.28, 310.22°)
OKLaboklab(30.87% 0.0588 -0.1164)
OKLCHoklch(30.87% 0.13 296.8)
XYZxyz(4.5120, 2.5225, 13.3432)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391868 #476818
analogous
#181F68 #391868 #611868
triadic
#391868 #683918 #186839
tetradic
#391868 #68181F #476818 #186861
square
#391868 #68181F #476818 #186861
split-complementary
#391868 #686118 #1F6818
monochromatic
#0E0619 #1E0D36 #391868 #54239A #702FCB

Accessibility & contrast

On white

13.96
#391868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#391868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391868
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391868#FFFFFF#000000##FFFFFF
##3918681.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002B66
Tritanopia (blue-blind)
#2D2D3E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #391868;
/* rgb */ color: rgb(57, 24, 104);
/* oklch */ color: oklch(30.9% 0.130 296.8);
Tailwind
colors: {
  custom: {
    50: '#755894',
    500: '#391868',
    950: '#000000',
  },
}
SCSS
$custom: #391868;
$custom-light: #755894;
$custom-dark: #000000;
JSON
{
  "hex": "#391868",
  "rgb": {
    "r": 57,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 264.75,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30865,
    "c": 0.1304,
    "h": 296.8
  },
  "luminance": 0.02523
}

Semantic roles & 50–950 ramp

primary
#391868
secondary
#769E3E
accent
#E642A2
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #391868

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

Preview Lab → · Contrast checker → · Palette generator →

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