#391F94#391F94

#391F94 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.176 H 283.4°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#391F94
RGBrgb(57, 31, 148)
HSLhsl(253, 65%, 35%)
HSVhsv(253, 79%, 58%)
CMYKcmyk(61.5%, 79.1%, 0%, 42%)
CIE-LABlab(23.63, 43.84, -59.44)
CIE-LCHlch(23.63, 73.86, 306.41°)
OKLaboklab(36.13% 0.0407 -0.1713)
OKLCHoklch(36.13% 0.176 283.4)
XYZxyz(7.5210, 3.9874, 28.3846)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F94 #7A941F
analogous
#1F4094 #391F94 #731F94
triadic
#391F94 #94391F #1F9439
tetradic
#391F94 #941F40 #7A941F #1F9473
square
#391F94 #941F40 #7A941F #1F9473
split-complementary
#391F94 #94731F #40941F
monochromatic
#120A2F #261461 #391F94 #4C2AC7 #7153DB

Accessibility & contrast

On white

11.68
#391F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391F94
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F94#FFFFFF#000000##FFFFFF
##391F941.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C97
Deuteranopia (green-blind)
#003492
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #391f94;
/* rgb */ color: rgb(57, 31, 148);
/* oklch */ color: oklch(36.1% 0.176 283.4);
Tailwind
colors: {
  custom: {
    50: '#7b5fb5',
    500: '#391f94',
    950: '#000000',
  },
}
SCSS
$custom: #391f94;
$custom-light: #7b5fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#391f94",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 253.333,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36127,
    "c": 0.17612,
    "h": 283.4
  },
  "luminance": 0.03988
}

Semantic roles & 50–950 ramp

primary
#391F94
secondary
#A6BE51
accent
#E83FC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #391F94

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

Preview Lab → · Contrast checker → · Palette generator →

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