#392282#392282

#392282 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.151 H 286.6°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#392282
RGBrgb(57, 34, 130)
HSLhsl(254, 59%, 32%)
HSVhsv(254, 74%, 51%)
CMYKcmyk(56.2%, 73.8%, 0%, 49%)
CIE-LABlab(22.39, 36.73, -50.24)
CIE-LCHlch(22.39, 62.24, 306.17°)
OKLaboklab(34.71% 0.0431 -0.1445)
OKLCHoklch(34.71% 0.151 286.6)
XYZxyz(6.2874, 3.6253, 21.4832)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392282 #6B8222
analogous
#223B82 #392282 #692282
triadic
#392282 #823922 #228239
tetradic
#392282 #82223B #6B8222 #228269
square
#392282 #82223B #6B8222 #228269
split-complementary
#392282 #826922 #3B8222
monochromatic
#0E0921 #241551 #392282 #4E2FB3 #6D4ED1

Accessibility & contrast

On white

12.17
#392282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #392282
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392282#FFFFFF#000000##FFFFFF
##3922821.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003380
Tritanopia (blue-blind)
#1A3C4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #392282;
/* rgb */ color: rgb(57, 34, 130);
/* oklch */ color: oklch(34.7% 0.151 286.6);
Tailwind
colors: {
  custom: {
    50: '#785fa7',
    500: '#392282',
    950: '#000000',
  },
}
SCSS
$custom: #392282;
$custom-light: #785fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#392282",
  "rgb": {
    "r": 57,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 254.375,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34711,
    "c": 0.15077,
    "h": 286.6
  },
  "luminance": 0.03626
}

Semantic roles & 50–950 ramp

primary
#392282
secondary
#9BB44C
accent
#E246BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #392282

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

Preview Lab → · Contrast checker → · Palette generator →

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