#381D7F#381D7F

#381D7F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.153 H 287.8°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#381D7F
RGBrgb(56, 29, 127)
HSLhsl(257, 63%, 31%)
HSVhsv(257, 77%, 50%)
CMYKcmyk(55.9%, 77.2%, 0%, 50.2%)
CIE-LABlab(21.02, 38.39, -50.59)
CIE-LCHlch(21.02, 63.51, 307.19°)
OKLaboklab(33.63% 0.0466 -0.1455)
OKLCHoklch(33.63% 0.153 287.8)
XYZxyz(5.8999, 3.2515, 20.3913)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D7F #647F1D
analogous
#1D337F #381D7F #691D7F
triadic
#381D7F #7F381D #1D7F38
tetradic
#381D7F #7F1D33 #647F1D #1D7F69
square
#381D7F #7F1D33 #647F1D #1D7F69
split-complementary
#381D7F #7F691D #337F1D
monochromatic
#0C061B #22124D #381D7F #4E28B1 #6B42D4

Accessibility & contrast

On white

12.72
#381D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#381D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D7F
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D7F#FFFFFF#000000##FFFFFF
##381D7F1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#1B384C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381d7f;
/* rgb */ color: rgb(56, 29, 127);
/* oklch */ color: oklch(33.6% 0.153 287.8);
Tailwind
colors: {
  custom: {
    50: '#775ca5',
    500: '#381d7f',
    950: '#000000',
  },
}
SCSS
$custom: #381d7f;
$custom-light: #775ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#381d7f",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 256.531,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33629,
    "c": 0.1528,
    "h": 287.8
  },
  "luminance": 0.03252
}

Semantic roles & 50–950 ramp

primary
#381D7F
secondary
#94B245
accent
#E642B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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