#392188#392188

#392188 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.159 H 285.5°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#392188
RGBrgb(57, 33, 136)
HSLhsl(254, 61%, 33%)
HSVhsv(254, 76%, 53%)
CMYKcmyk(58.1%, 75.7%, 0%, 46.7%)
CIE-LABlab(22.77, 39.14, -53.38)
CIE-LCHlch(22.77, 66.20, 306.25°)
OKLaboklab(35.16% 0.0425 -0.1537)
OKLCHoklch(35.16% 0.159 285.5)
XYZxyz(6.6738, 3.7348, 23.6570)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392188 #708821
analogous
#213C88 #392188 #6C2188
triadic
#392188 #883921 #218839
tetradic
#392188 #88213C #708821 #21886C
square
#392188 #88213C #708821 #21886C
split-complementary
#392188 #886C21 #3C8821
monochromatic
#100925 #241557 #392188 #4E2DB9 #6E4FD4

Accessibility & contrast

On white

12.02
#392188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#392188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392188
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392188#FFFFFF#000000##FFFFFF
##3921881.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003386
Tritanopia (blue-blind)
#123D53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #392188;
/* rgb */ color: rgb(57, 33, 136);
/* oklch */ color: oklch(35.2% 0.159 285.5);
Tailwind
colors: {
  custom: {
    50: '#795fac',
    500: '#392188',
    950: '#000000',
  },
}
SCSS
$custom: #392188;
$custom-light: #795fac;
$custom-dark: #000000;
JSON
{
  "hex": "#392188",
  "rgb": {
    "r": 57,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 253.981,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35158,
    "c": 0.15946,
    "h": 285.5
  },
  "luminance": 0.03735
}

Semantic roles & 50–950 ramp

primary
#392188
secondary
#9FB84D
accent
#E444BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #392188

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

Preview Lab → · Contrast checker → · Palette generator →

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