#391F98#391F98

#391F98 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.181 H 282.6°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#391F98
RGBrgb(57, 31, 152)
HSLhsl(253, 66%, 36%)
HSVhsv(253, 80%, 60%)
CMYKcmyk(62.5%, 79.6%, 0%, 40.4%)
CIE-LABlab(24.05, 45.04, -61.20)
CIE-LCHlch(24.05, 75.99, 306.35°)
OKLaboklab(36.55% 0.0395 -0.1765)
OKLCHoklch(36.55% 0.181 282.6)
XYZxyz(7.8431, 4.1163, 30.0809)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F98 #7E981F
analogous
#1F4198 #391F98 #751F98
triadic
#391F98 #98391F #1F9839
tetradic
#391F98 #981F41 #7E981F #1F9875
square
#391F98 #981F41 #7E981F #1F9875
split-complementary
#391F98 #98751F #41981F
monochromatic
#130A32 #261565 #391F98 #4C29CB #7255DC

Accessibility & contrast

On white

11.52
#391F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#391F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F98
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F98#FFFFFF#000000##FFFFFF
##391F981.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #391f98;
/* rgb */ color: rgb(57, 31, 152);
/* oklch */ color: oklch(36.5% 0.181 282.6);
Tailwind
colors: {
  custom: {
    50: '#7c5fb8',
    500: '#391f98',
    950: '#000000',
  },
}
SCSS
$custom: #391f98;
$custom-light: #7c5fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#391f98",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 252.893,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36548,
    "c": 0.18088,
    "h": 282.6
  },
  "luminance": 0.04117
}

Semantic roles & 50–950 ramp

primary
#391F98
secondary
#A8C053
accent
#E93FC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #391F98

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

Preview Lab → · Contrast checker → · Palette generator →

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