#381C85#381C85

#381C85 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.161 H 286.5°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#381C85
RGBrgb(56, 28, 133)
HSLhsl(256, 65%, 32%)
HSVhsv(256, 79%, 52%)
CMYKcmyk(57.9%, 78.9%, 0%, 47.8%)
CIE-LABlab(21.45, 40.71, -53.68)
CIE-LCHlch(21.45, 67.37, 307.17°)
OKLaboklab(34.11% 0.0457 -0.1546)
OKLCHoklch(34.11% 0.161 286.5)
XYZxyz(6.2785, 3.3644, 22.5043)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C85 #69851C
analogous
#1C3585 #381C85 #6D1C85
triadic
#381C85 #85381C #1C8538
tetradic
#381C85 #851C35 #69851C #1C856D
square
#381C85 #851C35 #69851C #1C856D
split-complementary
#381C85 #856D1C #35851C
monochromatic
#0D0720 #231152 #381C85 #4D27B8 #6B44D8

Accessibility & contrast

On white

12.55
#381C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#381C85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C85
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C85#FFFFFF#000000##FFFFFF
##381C851.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#143A50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381c85;
/* rgb */ color: rgb(56, 28, 133);
/* oklch */ color: oklch(34.1% 0.161 286.5);
Tailwind
colors: {
  custom: {
    50: '#785caa',
    500: '#381c85',
    950: '#000000',
  },
}
SCSS
$custom: #381c85;
$custom-light: #785caa;
$custom-dark: #000000;
JSON
{
  "hex": "#381c85",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 133
  },
  "hsl": {
    "h": 256,
    "s": 65.217,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3411,
    "c": 0.16117,
    "h": 286.5
  },
  "luminance": 0.03365
}

Semantic roles & 50–950 ramp

primary
#381C85
secondary
#99B845
accent
#E840BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381C85

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

Preview Lab → · Contrast checker → · Palette generator →

#381C85 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva