#391985#391985

#391985 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.164 H 287.5°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#391985
RGBrgb(57, 25, 133)
HSLhsl(258, 68%, 31%)
HSVhsv(258, 81%, 52%)
CMYKcmyk(57.1%, 81.2%, 0%, 47.8%)
CIE-LABlab(21.05, 42.30, -54.34)
CIE-LCHlch(21.05, 68.86, 307.90°)
OKLaboklab(33.86% 0.0494 -0.1564)
OKLCHoklch(33.86% 0.164 287.5)
XYZxyz(6.2674, 3.2582, 22.4844)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391985 #658519
analogous
#192F85 #391985 #6F1985
triadic
#391985 #853919 #198539
tetradic
#391985 #85192F #658519 #19856F
square
#391985 #85192F #658519 #19856F
split-complementary
#391985 #856F19 #2F8519
monochromatic
#0D061E #230F51 #391985 #4F23B9 #6C3EDB

Accessibility & contrast

On white

12.71
#391985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#391985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391985
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391985#FFFFFF#000000##FFFFFF
##3919851.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#17394F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #391985;
/* rgb */ color: rgb(57, 25, 133);
/* oklch */ color: oklch(33.9% 0.164 287.5);
Tailwind
colors: {
  custom: {
    50: '#795aaa',
    500: '#391985',
    950: '#000000',
  },
}
SCSS
$custom: #391985;
$custom-light: #795aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#391985",
  "rgb": {
    "r": 57,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 257.778,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33858,
    "c": 0.16403,
    "h": 287.5
  },
  "luminance": 0.03259
}

Semantic roles & 50–950 ramp

primary
#391985
secondary
#95B941
accent
#EB3DB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391985

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

Preview Lab → · Contrast checker → · Palette generator →

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