#392187#392187

#392187 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.158 H 285.7°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#392187
RGBrgb(57, 33, 135)
HSLhsl(254, 61%, 33%)
HSVhsv(254, 76%, 53%)
CMYKcmyk(57.8%, 75.6%, 0%, 47.1%)
CIE-LABlab(22.68, 38.84, -52.92)
CIE-LCHlch(22.68, 65.64, 306.28°)
OKLaboklab(35.06% 0.0428 -0.1523)
OKLCHoklch(35.06% 0.158 285.7)
XYZxyz(6.6031, 3.7065, 23.2845)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392187 #6F8721
analogous
#213C87 #392187 #6C2187
triadic
#392187 #873921 #218739
tetradic
#392187 #87213C #6F8721 #21876C
square
#392187 #87213C #6F8721 #21876C
split-complementary
#392187 #876C21 #3C8721
monochromatic
#0F0925 #241556 #392187 #4E2DB8 #6E4FD4

Accessibility & contrast

On white

12.06
#392187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#392187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392187
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392187#FFFFFF#000000##FFFFFF
##3921871.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#143D52
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #392187;
/* rgb */ color: rgb(57, 33, 135);
/* oklch */ color: oklch(35.1% 0.158 285.7);
Tailwind
colors: {
  custom: {
    50: '#795fab',
    500: '#392187',
    950: '#000000',
  },
}
SCSS
$custom: #392187;
$custom-light: #795fab;
$custom-dark: #000000;
JSON
{
  "hex": "#392187",
  "rgb": {
    "r": 57,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 254.118,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35059,
    "c": 0.15822,
    "h": 285.7
  },
  "luminance": 0.03707
}

Semantic roles & 50–950 ramp

primary
#392187
secondary
#9EB74D
accent
#E444BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #392187

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

Preview Lab → · Contrast checker → · Palette generator →

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