#381C7C#381C7C

#381C7C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.150 H 288.7°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#381C7C
RGBrgb(56, 28, 124)
HSLhsl(258, 63%, 30%)
HSVhsv(258, 77%, 49%)
CMYKcmyk(54.8%, 77.4%, 0%, 51.4%)
CIE-LABlab(20.54, 38.01, -49.48)
CIE-LCHlch(20.54, 62.39, 307.53°)
OKLaboklab(33.2% 0.0482 -0.1422)
OKLCHoklch(33.2% 0.15 288.7)
XYZxyz(5.6832, 3.1262, 19.3688)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C7C #607C1C
analogous
#1C307C #381C7C #681C7C
triadic
#381C7C #7C381C #1C7C38
tetradic
#381C7C #7C1C30 #607C1C #1C7C68
square
#381C7C #7C1C30 #607C1C #1C7C68
split-complementary
#381C7C #7C681C #307C1C
monochromatic
#0B0619 #21114A #381C7C #4F27AE #6A3FD4

Accessibility & contrast

On white

12.92
#381C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#381C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C7C
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C7C#FFFFFF#000000##FFFFFF
##381C7C1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#1E364B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381c7c;
/* rgb */ color: rgb(56, 28, 124);
/* oklch */ color: oklch(33.2% 0.150 288.7);
Tailwind
colors: {
  custom: {
    50: '#775ba3',
    500: '#381c7c',
    950: '#000000',
  },
}
SCSS
$custom: #381c7c;
$custom-light: #775ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#381c7c",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 257.5,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.332,
    "c": 0.1502,
    "h": 288.7
  },
  "luminance": 0.03126
}

Semantic roles & 50–950 ramp

primary
#381C7C
secondary
#90B044
accent
#E642B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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