#381C71#381C71

#381C71 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.1% C 0.137 H 292.0°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#381C71
RGBrgb(56, 28, 113)
HSLhsl(260, 60%, 28%)
HSVhsv(260, 75%, 44%)
CMYKcmyk(50.4%, 75.2%, 0%, 55.7%)
CIE-LABlab(19.49, 34.71, -44.15)
CIE-LCHlch(19.49, 56.16, 308.17°)
OKLaboklab(32.13% 0.051 -0.1266)
OKLCHoklch(32.13% 0.137 292)
XYZxyz(5.0259, 2.8633, 15.9074)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C71 #55711C
analogous
#1C2A71 #381C71 #631C71
triadic
#381C71 #71381C #1C7138
tetradic
#381C71 #711C2A #55711C #1C7163
square
#381C71 #711C2A #55711C #1C7163
split-complementary
#381C71 #71631C #2A711C
monochromatic
#0C0619 #201040 #381C71 #5028A2 #6A39CE

Accessibility & contrast

On white

13.35
#381C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#381C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C71
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C71#FFFFFF#000000##FFFFFF
##381C711.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#263244
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381c71;
/* rgb */ color: rgb(56, 28, 113);
/* oklch */ color: oklch(32.1% 0.137 292.0);
Tailwind
colors: {
  custom: {
    50: '#755b9b',
    500: '#381c71',
    950: '#000000',
  },
}
SCSS
$custom: #381c71;
$custom-light: #755b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#381c71",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 259.765,
    "s": 60.284,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32132,
    "c": 0.13652,
    "h": 292
  },
  "luminance": 0.02864
}

Semantic roles & 50–950 ramp

primary
#381C71
secondary
#85A643
accent
#E344AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381C71

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

Preview Lab → · Contrast checker → · Palette generator →

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