#391996#391996

#391996 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.184 H 283.7°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#391996
RGBrgb(57, 25, 150)
HSLhsl(255, 71%, 34%)
HSVhsv(255, 83%, 59%)
CMYKcmyk(62%, 83.3%, 0%, 41.2%)
CIE-LABlab(22.88, 47.22, -61.90)
CIE-LCHlch(22.88, 77.85, 307.34°)
OKLaboklab(35.67% 0.0436 -0.1785)
OKLCHoklch(35.67% 0.184 283.7)
XYZxyz(7.5383, 3.7666, 29.1780)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391996 #769619
analogous
#193896 #391996 #781996
triadic
#391996 #963919 #199639
tetradic
#391996 #961938 #769619 #199678
square
#391996 #961938 #769619 #199678
split-complementary
#391996 #967819 #389619
monochromatic
#11082D #251062 #391996 #4D22CA #7049E1

Accessibility & contrast

On white

11.98
#391996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#391996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391996
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391996#FFFFFF#000000##FFFFFF
##3919961.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003294
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #391996;
/* rgb */ color: rgb(57, 25, 150);
/* oklch */ color: oklch(35.7% 0.184 283.7);
Tailwind
colors: {
  custom: {
    50: '#7c5cb6',
    500: '#391996',
    950: '#000000',
  },
}
SCSS
$custom: #391996;
$custom-light: #7c5cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#391996",
  "rgb": {
    "r": 57,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 255.36,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35674,
    "c": 0.18373,
    "h": 283.7
  },
  "luminance": 0.03767
}

Semantic roles & 50–950 ramp

primary
#391996
secondary
#A3C249
accent
#EE3AC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #391996

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

Preview Lab → · Contrast checker → · Palette generator →

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