#381C7F#381C7F

#381C7F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.154 H 287.9°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#381C7F
RGBrgb(56, 28, 127)
HSLhsl(257, 64%, 30%)
HSVhsv(257, 78%, 50%)
CMYKcmyk(55.9%, 78%, 0%, 50.2%)
CIE-LABlab(20.84, 38.91, -50.89)
CIE-LCHlch(20.84, 64.06, 307.40°)
OKLaboklab(33.5% 0.0474 -0.1464)
OKLCHoklch(33.5% 0.154 287.9)
XYZxyz(5.8758, 3.2033, 20.3832)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C7F #637F1C
analogous
#1C317F #381C7F #691C7F
triadic
#381C7F #7F381C #1C7F38
tetradic
#381C7F #7F1C31 #637F1C #1C7F69
square
#381C7F #7F1C31 #637F1C #1C7F69
split-complementary
#381C7F #7F691C #317F1C
monochromatic
#0C061B #22114D #381C7F #4E27B1 #6A40D5

Accessibility & contrast

On white

12.80
#381C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#381C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C7F
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C7F#FFFFFF#000000##FFFFFF
##381C7F1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#1B384C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381c7f;
/* rgb */ color: rgb(56, 28, 127);
/* oklch */ color: oklch(33.5% 0.154 287.9);
Tailwind
colors: {
  custom: {
    50: '#775ca5',
    500: '#381c7f',
    950: '#000000',
  },
}
SCSS
$custom: #381c7f;
$custom-light: #775ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#381c7f",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 256.97,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.335,
    "c": 0.15388,
    "h": 287.9
  },
  "luminance": 0.03204
}

Semantic roles & 50–950 ramp

primary
#381C7F
secondary
#93B344
accent
#E741B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #381C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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