#381C77#381C77

#381C77 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.144 H 290.1°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#381C77
RGBrgb(56, 28, 119)
HSLhsl(258, 62%, 29%)
HSVhsv(258, 76%, 47%)
CMYKcmyk(52.9%, 76.5%, 0%, 53.3%)
CIE-LABlab(20.06, 36.51, -47.08)
CIE-LCHlch(20.06, 59.58, 307.79°)
OKLaboklab(32.71% 0.0496 -0.1352)
OKLCHoklch(32.71% 0.144 290.1)
XYZxyz(5.3750, 3.0029, 17.7456)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C77 #5B771C
analogous
#1C2D77 #381C77 #661C77
triadic
#381C77 #77381C #1C7738
tetradic
#381C77 #771C2D #5B771C #1C7766
square
#381C77 #771C2D #5B771C #1C7766
split-complementary
#381C77 #77661C #2D771C
monochromatic
#0C0619 #211045 #381C77 #4F28A9 #6A3CD1

Accessibility & contrast

On white

13.12
#381C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#381C77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C77
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C77#FFFFFF#000000##FFFFFF
##381C771.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#223448
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381c77;
/* rgb */ color: rgb(56, 28, 119);
/* oklch */ color: oklch(32.7% 0.144 290.1);
Tailwind
colors: {
  custom: {
    50: '#765b9f',
    500: '#381c77',
    950: '#000000',
  },
}
SCSS
$custom: #381c77;
$custom-light: #765b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#381c77",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 119
  },
  "hsl": {
    "h": 258.462,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32708,
    "c": 0.14402,
    "h": 290.1
  },
  "luminance": 0.03003
}

Semantic roles & 50–950 ramp

primary
#381C77
secondary
#8BAB44
accent
#E543B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #381C77

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

Preview Lab → · Contrast checker → · Palette generator →

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