#392688#392688

#392688 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.154 H 284.4°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#392688
RGBrgb(57, 38, 136)
HSLhsl(252, 56%, 34%)
HSVhsv(252, 72%, 53%)
CMYKcmyk(58.1%, 72.1%, 0%, 46.7%)
CIE-LABlab(23.78, 36.33, -51.73)
CIE-LCHlch(23.78, 63.22, 305.08°)
OKLaboklab(35.87% 0.0383 -0.1489)
OKLCHoklch(35.87% 0.154 284.4)
XYZxyz(6.8230, 4.0332, 23.7067)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392688 #758826
analogous
#264488 #392688 #6A2688
triadic
#392688 #883926 #268839
tetradic
#392688 #882644 #758826 #26886A
square
#392688 #882644 #758826 #26886A
split-complementary
#392688 #886A26 #448826
monochromatic
#110B28 #251958 #392688 #4D33B8 #6F58D0

Accessibility & contrast

On white

11.62
#392688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#392688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392688
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392688#FFFFFF#000000##FFFFFF
##3926881.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003586
Tritanopia (blue-blind)
#124054
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #392688;
/* rgb */ color: rgb(57, 38, 136);
/* oklch */ color: oklch(35.9% 0.154 284.4);
Tailwind
colors: {
  custom: {
    50: '#7962ac',
    500: '#392688',
    950: '#000000',
  },
}
SCSS
$custom: #392688;
$custom-light: #7962ac;
$custom-dark: #000000;
JSON
{
  "hex": "#392688",
  "rgb": {
    "r": 57,
    "g": 38,
    "b": 136
  },
  "hsl": {
    "h": 251.633,
    "s": 56.322,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35873,
    "c": 0.15372,
    "h": 284.4
  },
  "luminance": 0.04034
}

Semantic roles & 50–950 ramp

primary
#392688
secondary
#A2B555
accent
#E048C2
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #392688

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

Preview Lab → · Contrast checker → · Palette generator →

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