#392286#392286

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

Color values

HEX#392286
RGBrgb(57, 34, 134)
HSLhsl(254, 60%, 33%)
HSVhsv(254, 75%, 53%)
CMYKcmyk(57.5%, 74.6%, 0%, 47.5%)
CIE-LABlab(22.77, 37.98, -52.13)
CIE-LCHlch(22.77, 64.49, 306.07°)
OKLaboklab(35.1% 0.0422 -0.15)
OKLCHoklch(35.1% 0.156 285.7)
XYZxyz(6.5611, 3.7348, 22.9248)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392286 #6F8622
analogous
#223D86 #392286 #6B2286
triadic
#392286 #863922 #228639
tetradic
#392286 #86223D #6F8622 #22866B
square
#392286 #86223D #6F8622 #22866B
split-complementary
#392286 #866B22 #3D8622
monochromatic
#0F0924 #241655 #392286 #4E2EB7 #6E50D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##392286#FFFFFF#000000##FFFFFF
##3922861.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)
#003989
Deuteranopia (green-blind)
#003384
Tritanopia (blue-blind)
#153D52
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #392286;
/* rgb */ color: rgb(57, 34, 134);
/* oklch */ color: oklch(35.1% 0.156 285.7);
Tailwind
colors: {
  custom: {
    50: '#7960aa',
    500: '#392286',
    950: '#000000',
  },
}
SCSS
$custom: #392286;
$custom-light: #7960aa;
$custom-dark: #000000;
JSON
{
  "hex": "#392286",
  "rgb": {
    "r": 57,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 253.8,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35099,
    "c": 0.15584,
    "h": 285.7
  },
  "luminance": 0.03735
}

Semantic roles & 50–950 ramp

primary
#392286
secondary
#9EB64E
accent
#E345BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #392286

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

Preview Lab → · Contrast checker → · Palette generator →

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