#392381#392381

#392381 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.148 H 286.6°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#392381
RGBrgb(57, 35, 129)
HSLhsl(254, 57%, 32%)
HSVhsv(254, 73%, 51%)
CMYKcmyk(55.8%, 72.9%, 0%, 49.4%)
CIE-LABlab(22.50, 35.85, -49.43)
CIE-LCHlch(22.50, 61.06, 305.95°)
OKLaboklab(34.76% 0.0424 -0.1421)
OKLCHoklch(34.76% 0.148 286.6)
XYZxyz(6.2496, 3.6566, 21.1411)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392381 #6B8123
analogous
#233C81 #392381 #682381
triadic
#392381 #813923 #238139
tetradic
#392381 #81233C #6B8123 #238168
square
#392381 #81233C #6B8123 #238168
split-complementary
#392381 #816823 #3C8123
monochromatic
#0E0921 #241651 #392381 #4E30B1 #6D4FCF

Accessibility & contrast

On white

12.13
#392381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#392381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392381
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392381#FFFFFF#000000##FFFFFF
##3923811.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#1B3C4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #392381;
/* rgb */ color: rgb(57, 35, 129);
/* oklch */ color: oklch(34.8% 0.148 286.6);
Tailwind
colors: {
  custom: {
    50: '#7860a6',
    500: '#392381',
    950: '#000000',
  },
}
SCSS
$custom: #392381;
$custom-light: #7860a6;
$custom-dark: #000000;
JSON
{
  "hex": "#392381",
  "rgb": {
    "r": 57,
    "g": 35,
    "b": 129
  },
  "hsl": {
    "h": 254.043,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3476,
    "c": 0.14831,
    "h": 286.6
  },
  "luminance": 0.03657
}

Semantic roles & 50–950 ramp

primary
#392381
secondary
#9BB34D
accent
#E147BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #392381

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

Preview Lab → · Contrast checker → · Palette generator →

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