#391F95#391F95

#391F95 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.177 H 283.2°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#391F95
RGBrgb(57, 31, 149)
HSLhsl(253, 66%, 35%)
HSVhsv(253, 79%, 58%)
CMYKcmyk(61.7%, 79.2%, 0%, 41.6%)
CIE-LABlab(23.73, 44.14, -59.88)
CIE-LCHlch(23.73, 74.39, 306.40°)
OKLaboklab(36.23% 0.0404 -0.1726)
OKLCHoklch(36.23% 0.177 283.2)
XYZxyz(7.6005, 4.0192, 28.8032)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F95 #7B951F
analogous
#1F4095 #391F95 #741F95
triadic
#391F95 #95391F #1F9539
tetradic
#391F95 #951F40 #7B951F #1F9574
square
#391F95 #951F40 #7B951F #1F9574
split-complementary
#391F95 #95741F #40951F
monochromatic
#120A30 #261462 #391F95 #4C2AC8 #7153DB

Accessibility & contrast

On white

11.64
#391F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#391F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F95
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F95#FFFFFF#000000##FFFFFF
##391F951.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #391f95;
/* rgb */ color: rgb(57, 31, 149);
/* oklch */ color: oklch(36.2% 0.177 283.2);
Tailwind
colors: {
  custom: {
    50: '#7c5fb5',
    500: '#391f95',
    950: '#000000',
  },
}
SCSS
$custom: #391f95;
$custom-light: #7c5fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#391f95",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 253.22,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36232,
    "c": 0.17731,
    "h": 283.2
  },
  "luminance": 0.0402
}

Semantic roles & 50–950 ramp

primary
#391F95
secondary
#A6BF51
accent
#E93FC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #391F95

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

Preview Lab → · Contrast checker → · Palette generator →

#391F95 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva