#381E71#381E71

#381E71 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.4% C 0.134 H 291.5°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#381E71
RGBrgb(56, 30, 113)
HSLhsl(259, 58%, 28%)
HSVhsv(259, 73%, 44%)
CMYKcmyk(50.4%, 73.5%, 0%, 55.7%)
CIE-LABlab(19.89, 33.59, -43.50)
CIE-LCHlch(19.89, 54.95, 307.68°)
OKLaboklab(32.42% 0.049 -0.1247)
OKLCHoklch(32.42% 0.134 291.5)
XYZxyz(5.0750, 2.9614, 15.9238)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E71 #57711E
analogous
#1E2D71 #381E71 #611E71
triadic
#381E71 #71381E #1E7138
tetradic
#381E71 #711E2D #57711E #1E7161
square
#381E71 #711E2D #57711E #1E7161
split-complementary
#381E71 #71611E #2D711E
monochromatic
#0C0618 #201141 #381E71 #502BA1 #6A3ECC

Accessibility & contrast

On white

13.19
#381E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381E71
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E71#FFFFFF#000000##FFFFFF
##381E711.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#263345
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381e71;
/* rgb */ color: rgb(56, 30, 113);
/* oklch */ color: oklch(32.4% 0.134 291.5);
Tailwind
colors: {
  custom: {
    50: '#755c9b',
    500: '#381e71',
    950: '#000000',
  },
}
SCSS
$custom: #381e71;
$custom-light: #755c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#381e71",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 258.795,
    "s": 58.042,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32417,
    "c": 0.134,
    "h": 291.5
  },
  "luminance": 0.02962
}

Semantic roles & 50–950 ramp

primary
#381E71
secondary
#87A546
accent
#E147B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381E71

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

Preview Lab → · Contrast checker → · Palette generator →

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