#392987#392987

#392987 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.2% C 0.149 H 283.9°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#392987
RGBrgb(57, 41, 135)
HSLhsl(250, 53%, 35%)
HSVhsv(250, 70%, 53%)
CMYKcmyk(57.8%, 69.6%, 0%, 47.1%)
CIE-LABlab(24.34, 34.23, -50.20)
CIE-LCHlch(24.34, 60.76, 304.29°)
OKLaboklab(36.24% 0.0358 -0.1444)
OKLCHoklch(36.24% 0.149 283.9)
XYZxyz(6.8521, 4.2046, 23.3675)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392987 #778729
analogous
#294887 #392987 #682987
triadic
#392987 #873929 #298739
tetradic
#392987 #872948 #778729 #298768
square
#392987 #872948 #778729 #298768
split-complementary
#392987 #876829 #488729
monochromatic
#110C29 #251B58 #392987 #4D37B6 #705DCE

Accessibility & contrast

On white

11.41
#392987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#392987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392987
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392987#FFFFFF#000000##FFFFFF
##3929871.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#134154
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #392987;
/* rgb */ color: rgb(57, 41, 135);
/* oklch */ color: oklch(36.2% 0.149 283.9);
Tailwind
colors: {
  custom: {
    50: '#7864ab',
    500: '#392987',
    950: '#000000',
  },
}
SCSS
$custom: #392987;
$custom-light: #7864ab;
$custom-dark: #000000;
JSON
{
  "hex": "#392987",
  "rgb": {
    "r": 57,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 250.213,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36243,
    "c": 0.14874,
    "h": 283.9
  },
  "luminance": 0.04205
}

Semantic roles & 50–950 ramp

primary
#392987
secondary
#A4B359
accent
#DD4BC4
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #392987

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

Preview Lab → · Contrast checker → · Palette generator →

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