#391E98#391E98

#391E98 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.182 H 282.7°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#391E98
RGBrgb(57, 30, 152)
HSLhsl(253, 67%, 36%)
HSVhsv(253, 80%, 60%)
CMYKcmyk(62.5%, 80.3%, 0%, 40.4%)
CIE-LABlab(23.88, 45.52, -61.48)
CIE-LCHlch(23.88, 76.50, 306.52°)
OKLaboklab(36.43% 0.0401 -0.1773)
OKLCHoklch(36.43% 0.182 282.7)
XYZxyz(7.8173, 4.0649, 30.0723)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391E98 #7D981E
analogous
#1E4098 #391E98 #761E98
triadic
#391E98 #98391E #1E9839
tetradic
#391E98 #981E40 #7D981E #1E9876
square
#391E98 #981E40 #7D981E #1E9876
split-complementary
#391E98 #98761E #40981E
monochromatic
#130A32 #261465 #391E98 #4C28CB #7253DD

Accessibility & contrast

On white

11.58
#391E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#391E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391E98
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391E98#FFFFFF#000000##FFFFFF
##391E981.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #391e98;
/* rgb */ color: rgb(57, 30, 152);
/* oklch */ color: oklch(36.4% 0.182 282.7);
Tailwind
colors: {
  custom: {
    50: '#7c5eb8',
    500: '#391e98',
    950: '#000000',
  },
}
SCSS
$custom: #391e98;
$custom-light: #7c5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#391e98",
  "rgb": {
    "r": 57,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 253.279,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36431,
    "c": 0.18179,
    "h": 282.7
  },
  "luminance": 0.04065
}

Semantic roles & 50–950 ramp

primary
#391E98
secondary
#A8C051
accent
#EA3EC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #391E98

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

Preview Lab → · Contrast checker → · Palette generator →

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