#392978#392978

#392978 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 34.9% C 0.128 H 287.1°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#392978
RGBrgb(57, 41, 120)
HSLhsl(252, 49%, 32%)
HSVhsv(252, 66%, 47%)
CMYKcmyk(52.5%, 65.8%, 0%, 52.9%)
CIE-LABlab(23.04, 29.36, -42.85)
CIE-LCHlch(23.04, 51.94, 304.42°)
OKLaboklab(34.9% 0.0377 -0.1228)
OKLCHoklch(34.9% 0.128 287.1)
XYZxyz(5.8694, 3.8115, 18.1921)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392978 #687829
analogous
#294178 #392978 #612978
triadic
#392978 #783929 #297839
tetradic
#392978 #782941 #687829 #297861
square
#392978 #782941 #687829 #297861
split-complementary
#392978 #786129 #417829
monochromatic
#0E0A1D #23194A #392978 #4F39A6 #6D56C5

Accessibility & contrast

On white

11.92
#392978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#392978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392978
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392978#FFFFFF#000000##FFFFFF
##3929781.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397B
Deuteranopia (green-blind)
#003576
Tritanopia (blue-blind)
#223C4C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #392978;
/* rgb */ color: rgb(57, 41, 120);
/* oklch */ color: oklch(34.9% 0.128 287.1);
Tailwind
colors: {
  custom: {
    50: '#7663a0',
    500: '#392978',
    950: '#000000',
  },
}
SCSS
$custom: #392978;
$custom-light: #7663a0;
$custom-dark: #000000;
JSON
{
  "hex": "#392978",
  "rgb": {
    "r": 57,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 252.152,
    "s": 49.068,
    "l": 31.569
  },
  "oklch": {
    "l": 0.349,
    "c": 0.12844,
    "h": 287.1
  },
  "luminance": 0.03812
}

Semantic roles & 50–950 ramp

primary
#392978
secondary
#98AA53
accent
#D94FBD
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09050F
muted
#7B7A7E

Preview Lab

Preview with #392978

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

Preview Lab → · Contrast checker → · Palette generator →

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