#382579#382579

#382579 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.135 H 287.4°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#382579
RGBrgb(56, 37, 121)
HSLhsl(254, 53%, 31%)
HSVhsv(254, 69%, 47%)
CMYKcmyk(53.7%, 69.4%, 0%, 52.5%)
CIE-LABlab(22.10, 31.96, -45.01)
CIE-LCHlch(22.10, 55.20, 305.38°)
OKLaboklab(34.23% 0.0404 -0.1292)
OKLCHoklch(34.23% 0.135 287.4)
XYZxyz(5.7426, 3.5441, 18.4669)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382579 #667925
analogous
#253C79 #382579 #622579
triadic
#382579 #793825 #257938
tetradic
#382579 #79253C #667925 #257962
square
#382579 #79253C #667925 #257962
split-complementary
#382579 #796225 #3C7925
monochromatic
#0D081B #22174A #382579 #4E33A8 #6B4FC9

Accessibility & contrast

On white

12.29
#382579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#382579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382579
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382579#FFFFFF#000000##FFFFFF
##3825791.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#1F3A4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #382579;
/* rgb */ color: rgb(56, 37, 121);
/* oklch */ color: oklch(34.2% 0.135 287.4);
Tailwind
colors: {
  custom: {
    50: '#7561a0',
    500: '#382579',
    950: '#000000',
  },
}
SCSS
$custom: #382579;
$custom-light: #7561a0;
$custom-dark: #000000;
JSON
{
  "hex": "#382579",
  "rgb": {
    "r": 56,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 253.571,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34225,
    "c": 0.13535,
    "h": 287.4
  },
  "luminance": 0.03544
}

Semantic roles & 50–950 ramp

primary
#382579
secondary
#96AB4E
accent
#DD4BBC
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #382579

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

Preview Lab → · Contrast checker → · Palette generator →

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