#391895#391895

#391895 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.183 H 284.1°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#391895
RGBrgb(57, 24, 149)
HSLhsl(256, 72%, 34%)
HSVhsv(256, 84%, 58%)
CMYKcmyk(61.7%, 83.9%, 0%, 41.6%)
CIE-LABlab(22.63, 47.36, -61.71)
CIE-LCHlch(22.63, 77.78, 307.50°)
OKLaboklab(35.47% 0.0445 -0.1779)
OKLCHoklch(35.47% 0.183 284.1)
XYZxyz(7.4371, 3.6926, 28.7488)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391895 #749518
analogous
#183695 #391895 #781895
triadic
#391895 #953918 #189539
tetradic
#391895 #951836 #749518 #189578
square
#391895 #951836 #749518 #189578
split-complementary
#391895 #957818 #369518
monochromatic
#11072C #251060 #391895 #4D20CA #6F46E1

Accessibility & contrast

On white

12.08
#391895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#391895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391895
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391895#FFFFFF#000000##FFFFFF
##3918951.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#003F58
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #391895;
/* rgb */ color: rgb(57, 24, 149);
/* oklch */ color: oklch(35.5% 0.183 284.1);
Tailwind
colors: {
  custom: {
    50: '#7c5bb5',
    500: '#391895',
    950: '#000000',
  },
}
SCSS
$custom: #391895;
$custom-light: #7c5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#391895",
  "rgb": {
    "r": 57,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 255.84,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35465,
    "c": 0.18338,
    "h": 284.1
  },
  "luminance": 0.03693
}

Semantic roles & 50–950 ramp

primary
#391895
secondary
#A2C246
accent
#EF39BF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #391895

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

Preview Lab → · Contrast checker → · Palette generator →

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