#382687#382687

#382687 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.7% C 0.153 H 284.0°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#382687
RGBrgb(56, 38, 135)
HSLhsl(251, 56%, 34%)
HSVhsv(251, 72%, 53%)
CMYKcmyk(58.5%, 71.9%, 0%, 47.1%)
CIE-LABlab(23.59, 35.85, -51.42)
CIE-LCHlch(23.59, 62.68, 304.88°)
OKLaboklab(35.69% 0.037 -0.148)
OKLCHoklch(35.69% 0.153 284)
XYZxyz(6.6958, 3.9758, 23.3316)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382687 #758726
analogous
#264587 #382687 #692687
triadic
#382687 #873826 #268738
tetradic
#382687 #872645 #758726 #268769
square
#382687 #872645 #758726 #268769
split-complementary
#382687 #876926 #458726
monochromatic
#100B27 #241957 #382687 #4C33B7 #6E58D0

Accessibility & contrast

On white

11.70
#382687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#382687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382687
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382687#FFFFFF#000000##FFFFFF
##3826871.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #382687;
/* rgb */ color: rgb(56, 38, 135);
/* oklch */ color: oklch(35.7% 0.153 284.0);
Tailwind
colors: {
  custom: {
    50: '#7862ab',
    500: '#382687',
    950: '#000000',
  },
}
SCSS
$custom: #382687;
$custom-light: #7862ab;
$custom-dark: #000000;
JSON
{
  "hex": "#382687",
  "rgb": {
    "r": 56,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 251.134,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35685,
    "c": 0.15255,
    "h": 284
  },
  "luminance": 0.03976
}

Semantic roles & 50–950 ramp

primary
#382687
secondary
#A3B554
accent
#DF48C3
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #382687

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

Preview Lab → · Contrast checker → · Palette generator →

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