#392687#392687

#392687 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.152 H 284.6°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#392687
RGBrgb(57, 38, 135)
HSLhsl(252, 56%, 34%)
HSVhsv(252, 72%, 53%)
CMYKcmyk(57.8%, 71.9%, 0%, 47.1%)
CIE-LABlab(23.69, 36.01, -51.26)
CIE-LCHlch(23.69, 62.64, 305.09°)
OKLaboklab(35.78% 0.0385 -0.1475)
OKLCHoklch(35.78% 0.152 284.6)
XYZxyz(6.7523, 4.0050, 23.3342)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392687 #748726
analogous
#264487 #392687 #6A2687
triadic
#392687 #873926 #268739
tetradic
#392687 #872644 #748726 #26876A
square
#392687 #872644 #748726 #26876A
split-complementary
#392687 #876A26 #448726
monochromatic
#110B27 #251957 #392687 #4D33B7 #6F58D0

Accessibility & contrast

On white

11.66
#392687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#392687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392687
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392687#FFFFFF#000000##FFFFFF
##3926871.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#134053
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #392687;
/* rgb */ color: rgb(57, 38, 135);
/* oklch */ color: oklch(35.8% 0.152 284.6);
Tailwind
colors: {
  custom: {
    50: '#7862ab',
    500: '#392687',
    950: '#000000',
  },
}
SCSS
$custom: #392687;
$custom-light: #7862ab;
$custom-dark: #000000;
JSON
{
  "hex": "#392687",
  "rgb": {
    "r": 57,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 251.753,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35778,
    "c": 0.15242,
    "h": 284.6
  },
  "luminance": 0.04005
}

Semantic roles & 50–950 ramp

primary
#392687
secondary
#A2B554
accent
#DF48C2
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #392687

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

Preview Lab → · Contrast checker → · Palette generator →

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