#381D7D#381D7D

#381D7D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.150 H 288.3°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#381D7D
RGBrgb(56, 29, 125)
HSLhsl(257, 62%, 30%)
HSVhsv(257, 77%, 49%)
CMYKcmyk(55.2%, 76.8%, 0%, 51%)
CIE-LABlab(20.83, 37.78, -49.64)
CIE-LCHlch(20.83, 62.39, 307.27°)
OKLaboklab(33.43% 0.0471 -0.1427)
OKLCHoklch(33.43% 0.15 288.3)
XYZxyz(5.7708, 3.1999, 19.7116)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D7D #627D1D
analogous
#1D327D #381D7D #681D7D
triadic
#381D7D #7D381D #1D7D38
tetradic
#381D7D #7D1D32 #627D1D #1D7D68
square
#381D7D #7D1D32 #627D1D #1D7D68
split-complementary
#381D7D #7D681D #327D1D
monochromatic
#0B061A #22114B #381D7D #4E29AF #6A41D3

Accessibility & contrast

On white

12.80
#381D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#381D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D7D
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D7D#FFFFFF#000000##FFFFFF
##381D7D1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#1D374B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381d7d;
/* rgb */ color: rgb(56, 29, 125);
/* oklch */ color: oklch(33.4% 0.150 288.3);
Tailwind
colors: {
  custom: {
    50: '#775ca4',
    500: '#381d7d',
    950: '#000000',
  },
}
SCSS
$custom: #381d7d;
$custom-light: #775ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#381d7d",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 256.875,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33431,
    "c": 0.15032,
    "h": 288.3
  },
  "luminance": 0.032
}

Semantic roles & 50–950 ramp

primary
#381D7D
secondary
#92B145
accent
#E542B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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