#392287#392287

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

Color values

HEX#392287
RGBrgb(57, 34, 135)
HSLhsl(254, 60%, 33%)
HSVhsv(254, 75%, 53%)
CMYKcmyk(57.8%, 74.8%, 0%, 47.1%)
CIE-LABlab(22.87, 38.29, -52.60)
CIE-LCHlch(22.87, 65.06, 306.05°)
OKLaboklab(35.2% 0.042 -0.1514)
OKLCHoklch(35.2% 0.157 285.5)
XYZxyz(6.6312, 3.7628, 23.2938)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392287 #708722
analogous
#223E87 #392287 #6B2287
triadic
#392287 #873922 #228739
tetradic
#392287 #87223E #708722 #22876B
square
#392287 #87223E #708722 #22876B
split-complementary
#392287 #876B22 #3E8722
monochromatic
#100925 #241656 #392287 #4E2EB8 #6E50D3

Accessibility & contrast

On white

11.98
#392287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #392287
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392287#FFFFFF#000000##FFFFFF
##3922871.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #392287;
/* rgb */ color: rgb(57, 34, 135);
/* oklch */ color: oklch(35.2% 0.157 285.5);
Tailwind
colors: {
  custom: {
    50: '#7960ab',
    500: '#392287',
    950: '#000000',
  },
}
SCSS
$custom: #392287;
$custom-light: #7960ab;
$custom-dark: #000000;
JSON
{
  "hex": "#392287",
  "rgb": {
    "r": 57,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 253.663,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35197,
    "c": 0.1571,
    "h": 285.5
  },
  "luminance": 0.03763
}

Semantic roles & 50–950 ramp

primary
#392287
secondary
#9FB74E
accent
#E345BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #392287

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

Preview Lab → · Contrast checker → · Palette generator →

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