#381E9E#381E9E

#381E9E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.189 H 281.2°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#381E9E
RGBrgb(56, 30, 158)
HSLhsl(252, 68%, 37%)
HSVhsv(252, 81%, 62%)
CMYKcmyk(64.6%, 81%, 0%, 38%)
CIE-LABlab(24.44, 47.20, -64.24)
CIE-LCHlch(24.44, 79.72, 306.31°)
OKLaboklab(36.99% 0.0367 -0.1854)
OKLCHoklch(36.99% 0.189 281.2)
XYZxyz(8.2648, 4.2373, 32.7235)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E9E #849E1E
analogous
#1E449E #381E9E #781E9E
triadic
#381E9E #9E381E #1E9E38
tetradic
#381E9E #9E1E44 #849E1E #1E9E78
square
#381E9E #9E1E44 #849E1E #1E9E78
split-complementary
#381E9E #9E781E #449E1E
monochromatic
#140A37 #26146B #381E9E #4A28D1 #7357DF

Accessibility & contrast

On white

11.37
#381E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#381E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E9E
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E9E#FFFFFF#000000##FFFFFF
##381E9E1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.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: #381e9e;
/* rgb */ color: rgb(56, 30, 158);
/* oklch */ color: oklch(37.0% 0.189 281.2);
Tailwind
colors: {
  custom: {
    50: '#7d5fbc',
    500: '#381e9e',
    950: '#000000',
  },
}
SCSS
$custom: #381e9e;
$custom-light: #7d5fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#381e9e",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 158
  },
  "hsl": {
    "h": 252.188,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36987,
    "c": 0.18898,
    "h": 281.2
  },
  "luminance": 0.04238
}

Semantic roles & 50–950 ramp

primary
#381E9E
secondary
#ACC355
accent
#EB3DC8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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