#381C76#381C76

#381C76 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.143 H 290.4°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#381C76
RGBrgb(56, 28, 118)
HSLhsl(259, 62%, 29%)
HSVhsv(259, 76%, 46%)
CMYKcmyk(52.5%, 76.3%, 0%, 53.7%)
CIE-LABlab(19.96, 36.21, -46.60)
CIE-LCHlch(19.96, 59.01, 307.85°)
OKLaboklab(32.61% 0.0498 -0.1338)
OKLCHoklch(32.61% 0.143 290.4)
XYZxyz(5.3152, 2.9790, 17.4310)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C76 #5A761C
analogous
#1C2D76 #381C76 #651C76
triadic
#381C76 #76381C #1C7638
tetradic
#381C76 #761C2D #5A761C #1C7665
square
#381C76 #761C2D #5A761C #1C7665
split-complementary
#381C76 #76651C #2D761C
monochromatic
#0C0619 #211045 #381C76 #4F28A7 #6A3CD1

Accessibility & contrast

On white

13.16
#381C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381C76
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C76#FFFFFF#000000##FFFFFF
##381C761.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002E74
Tritanopia (blue-blind)
#223447
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381c76;
/* rgb */ color: rgb(56, 28, 118);
/* oklch */ color: oklch(32.6% 0.143 290.4);
Tailwind
colors: {
  custom: {
    50: '#765b9e',
    500: '#381c76',
    950: '#000000',
  },
}
SCSS
$custom: #381c76;
$custom-light: #765b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#381c76",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 118
  },
  "hsl": {
    "h": 258.667,
    "s": 61.644,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32611,
    "c": 0.14278,
    "h": 290.4
  },
  "luminance": 0.02979
}

Semantic roles & 50–950 ramp

primary
#381C76
secondary
#8AAA44
accent
#E543B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381C76

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

Preview Lab → · Contrast checker → · Palette generator →

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