#382587#382587

#382587 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.154 H 284.3°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#382587
RGBrgb(56, 37, 135)
HSLhsl(252, 57%, 34%)
HSVhsv(252, 73%, 53%)
CMYKcmyk(58.5%, 72.6%, 0%, 47.1%)
CIE-LABlab(23.38, 36.43, -51.76)
CIE-LCHlch(23.38, 63.30, 305.14°)
OKLaboklab(35.53% 0.0379 -0.149)
OKLCHoklch(35.53% 0.154 284.3)
XYZxyz(6.6643, 3.9128, 23.3210)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382587 #748725
analogous
#254387 #382587 #692587
triadic
#382587 #873825 #258738
tetradic
#382587 #872543 #748725 #258769
square
#382587 #872543 #748725 #258769
split-complementary
#382587 #876925 #438725
monochromatic
#100B27 #241857 #382587 #4C32B7 #6E56D1

Accessibility & contrast

On white

11.78
#382587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#382587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382587
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382587#FFFFFF#000000##FFFFFF
##3825871.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#0F3F53
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #382587;
/* rgb */ color: rgb(56, 37, 135);
/* oklch */ color: oklch(35.5% 0.154 284.3);
Tailwind
colors: {
  custom: {
    50: '#7861ab',
    500: '#382587',
    950: '#000000',
  },
}
SCSS
$custom: #382587;
$custom-light: #7861ab;
$custom-dark: #000000;
JSON
{
  "hex": "#382587",
  "rgb": {
    "r": 56,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 251.633,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35535,
    "c": 0.15374,
    "h": 284.3
  },
  "luminance": 0.03913
}

Semantic roles & 50–950 ramp

primary
#382587
secondary
#A2B553
accent
#E048C3
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #382587

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

Preview Lab → · Contrast checker → · Palette generator →

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