#381C75#381C75

#381C75 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.142 H 290.7°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#381C75
RGBrgb(56, 28, 117)
HSLhsl(259, 61%, 28%)
HSVhsv(259, 76%, 46%)
CMYKcmyk(52.1%, 76.1%, 0%, 54.1%)
CIE-LABlab(19.86, 35.90, -46.11)
CIE-LCHlch(19.86, 58.44, 307.91°)
OKLaboklab(32.52% 0.0501 -0.1324)
OKLCHoklch(32.52% 0.142 290.7)
XYZxyz(5.2561, 2.9554, 17.1197)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C75 #59751C
analogous
#1C2D75 #381C75 #641C75
triadic
#381C75 #75381C #1C7538
tetradic
#381C75 #751C2D #59751C #1C7564
square
#381C75 #751C2D #59751C #1C7564
split-complementary
#381C75 #75641C #2D751C
monochromatic
#0C0619 #201044 #381C75 #5028A6 #6A3BD0

Accessibility & contrast

On white

13.20
#381C75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#381C75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C75
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C75#FFFFFF#000000##FFFFFF
##381C751.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003278
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#233447
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381c75;
/* rgb */ color: rgb(56, 28, 117);
/* oklch */ color: oklch(32.5% 0.142 290.7);
Tailwind
colors: {
  custom: {
    50: '#765b9e',
    500: '#381c75',
    950: '#000000',
  },
}
SCSS
$custom: #381c75;
$custom-light: #765b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#381c75",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 117
  },
  "hsl": {
    "h": 258.876,
    "s": 61.379,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32515,
    "c": 0.14153,
    "h": 290.7
  },
  "luminance": 0.02956
}

Semantic roles & 50–950 ramp

primary
#381C75
secondary
#89A944
accent
#E443B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381C75

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

Preview Lab → · Contrast checker → · Palette generator →

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