#381E9D#381E9D

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

Color values

HEX#381E9D
RGBrgb(56, 30, 157)
HSLhsl(252, 68%, 37%)
HSVhsv(252, 81%, 62%)
CMYKcmyk(64.3%, 80.9%, 0%, 38.4%)
CIE-LABlab(24.33, 46.90, -63.81)
CIE-LCHlch(24.33, 79.19, 306.32°)
OKLaboklab(36.88% 0.037 -0.1841)
OKLCHoklch(36.88% 0.188 281.4)
XYZxyz(8.1790, 4.2030, 32.2720)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E9D #839D1E
analogous
#1E449D #381E9D #771E9D
triadic
#381E9D #9D381E #1E9D38
tetradic
#381E9D #9D1E44 #839D1E #1E9D77
square
#381E9D #9D1E44 #839D1E #1E9D77
split-complementary
#381E9D #9D771E #449D1E
monochromatic
#130A36 #26146A #381E9D #4A28D0 #7257DF

Accessibility & contrast

On white

11.41
#381E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381E9D
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E9D#FFFFFF#000000##FFFFFF
##381E9D1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381e9d;
/* rgb */ color: rgb(56, 30, 157);
/* oklch */ color: oklch(36.9% 0.188 281.4);
Tailwind
colors: {
  custom: {
    50: '#7d5fbb',
    500: '#381e9d',
    950: '#000000',
  },
}
SCSS
$custom: #381e9d;
$custom-light: #7d5fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#381e9d",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 252.283,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36879,
    "c": 0.18782,
    "h": 281.4
  },
  "luminance": 0.04204
}

Semantic roles & 50–950 ramp

primary
#381E9D
secondary
#ACC254
accent
#EB3DC7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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