#381D9E#381D9E

#381D9E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.190 H 281.3°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#381D9E
RGBrgb(56, 29, 158)
HSLhsl(253, 69%, 37%)
HSVhsv(253, 82%, 62%)
CMYKcmyk(64.6%, 81.6%, 0%, 38%)
CIE-LABlab(24.28, 47.66, -64.50)
CIE-LCHlch(24.28, 80.20, 306.46°)
OKLaboklab(36.88% 0.0373 -0.1861)
OKLCHoklch(36.88% 0.19 281.3)
XYZxyz(8.2399, 4.1875, 32.7152)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D9E #839E1D
analogous
#1D439E #381D9E #791D9E
triadic
#381D9E #9E381D #1D9E38
tetradic
#381D9E #9E1D43 #839E1D #1D9E79
square
#381D9E #9E1D43 #839E1D #1D9E79
split-complementary
#381D9E #9E791D #439E1D
monochromatic
#130A37 #26146A #381D9E #4A26D2 #7256E0

Accessibility & contrast

On white

11.43
#381D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#381D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D9E
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D9E#FFFFFF#000000##FFFFFF
##381D9E1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #381d9e;
/* rgb */ color: rgb(56, 29, 158);
/* oklch */ color: oklch(36.9% 0.190 281.3);
Tailwind
colors: {
  custom: {
    50: '#7d5ebc',
    500: '#381d9e',
    950: '#000000',
  },
}
SCSS
$custom: #381d9e;
$custom-light: #7d5ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#381d9e",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 252.558,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36877,
    "c": 0.18982,
    "h": 281.3
  },
  "luminance": 0.04188
}

Semantic roles & 50–950 ramp

primary
#381D9E
secondary
#ACC354
accent
#EC3CC7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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