#381DA7#381DA7

#381DA7 is a dark, highly saturated violet. Relative luminance 0.045; OKLCH L 37.9% C 0.200 H 279.9°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#381DA7
RGBrgb(56, 29, 167)
HSLhsl(252, 70%, 38%)
HSVhsv(252, 83%, 65%)
CMYKcmyk(66.5%, 82.6%, 0%, 34.5%)
CIE-LABlab(25.29, 50.30, -68.31)
CIE-LCHlch(25.29, 84.83, 306.36°)
OKLaboklab(37.87% 0.0344 -0.1972)
OKLCHoklch(37.87% 0.2 279.9)
XYZxyz(9.0431, 4.5088, 36.9455)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381DA7 #8CA71D
analogous
#1D47A7 #381DA7 #7D1DA7
triadic
#381DA7 #A7381D #1DA738
tetradic
#381DA7 #A71D47 #8CA71D #1DA77D
square
#381DA7 #A71D47 #8CA71D #1DA77D
split-complementary
#381DA7 #A77D1D #47A71D
monochromatic
#150B3F #271473 #381DA7 #4A28DA #765CE3

Accessibility & contrast

On white

11.04
#381DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#381DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381DA7
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381DA7#FFFFFF#000000##FFFFFF
##381DA71.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AB
Deuteranopia (green-blind)
#0037A5
Tritanopia (blue-blind)
#004864
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #381da7;
/* rgb */ color: rgb(56, 29, 167);
/* oklch */ color: oklch(37.9% 0.200 279.9);
Tailwind
colors: {
  custom: {
    50: '#7f5fc2',
    500: '#381da7',
    950: '#000000',
  },
}
SCSS
$custom: #381da7;
$custom-light: #7f5fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#381da7",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 167
  },
  "hsl": {
    "h": 251.739,
    "s": 70.408,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37866,
    "c": 0.20019,
    "h": 279.9
  },
  "luminance": 0.0451
}

Semantic roles & 50–950 ramp

primary
#381DA7
secondary
#B1C759
accent
#ED3BCA
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #381DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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