#381C7E#381C7E

#381C7E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.153 H 288.2°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#381C7E
RGBrgb(56, 28, 126)
HSLhsl(257, 64%, 30%)
HSVhsv(257, 78%, 49%)
CMYKcmyk(55.6%, 77.8%, 0%, 50.6%)
CIE-LABlab(20.74, 38.61, -50.42)
CIE-LCHlch(20.74, 63.51, 307.44°)
OKLaboklab(33.4% 0.0477 -0.145)
OKLCHoklch(33.4% 0.153 288.2)
XYZxyz(5.8109, 3.1773, 20.0417)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C7E #627E1C
analogous
#1C317E #381C7E #691C7E
triadic
#381C7E #7E381C #1C7E38
tetradic
#381C7E #7E1C31 #627E1C #1C7E69
square
#381C7E #7E1C31 #627E1C #1C7E69
split-complementary
#381C7E #7E691C #317E1C
monochromatic
#0B061A #22114C #381C7E #4E27B0 #6A40D5

Accessibility & contrast

On white

12.84
#381C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381C7E
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C7E#FFFFFF#000000##FFFFFF
##381C7E1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#1C374C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381c7e;
/* rgb */ color: rgb(56, 28, 126);
/* oklch */ color: oklch(33.4% 0.153 288.2);
Tailwind
colors: {
  custom: {
    50: '#775ca4',
    500: '#381c7e',
    950: '#000000',
  },
}
SCSS
$custom: #381c7e;
$custom-light: #775ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#381c7e",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 257.143,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.334,
    "c": 0.15265,
    "h": 288.2
  },
  "luminance": 0.03178
}

Semantic roles & 50–950 ramp

primary
#381C7E
secondary
#92B244
accent
#E741B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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