#381E9A#381E9A

#381E9A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.184 H 281.9°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#381E9A
RGBrgb(56, 30, 154)
HSLhsl(253, 67%, 36%)
HSVhsv(253, 81%, 60%)
CMYKcmyk(63.6%, 80.5%, 0%, 39.6%)
CIE-LABlab(24.01, 46.01, -62.51)
CIE-LCHlch(24.01, 77.62, 306.35°)
OKLaboklab(36.56% 0.038 -0.1803)
OKLCHoklch(36.56% 0.184 281.9)
XYZxyz(7.9261, 4.1018, 30.9396)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E9A #809A1E
analogous
#1E429A #381E9A #761E9A
triadic
#381E9A #9A381E #1E9A38
tetradic
#381E9A #9A1E42 #809A1E #1E9A76
square
#381E9A #9A1E42 #809A1E #1E9A76
split-complementary
#381E9A #9A761E #429A1E
monochromatic
#130A34 #251467 #381E9A #4B28CD #7155DE

Accessibility & contrast

On white

11.54
#381E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#381E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E9A
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E9A#FFFFFF#000000##FFFFFF
##381E9A1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003598
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #381e9a;
/* rgb */ color: rgb(56, 30, 154);
/* oklch */ color: oklch(36.6% 0.184 281.9);
Tailwind
colors: {
  custom: {
    50: '#7c5eb9',
    500: '#381e9a',
    950: '#000000',
  },
}
SCSS
$custom: #381e9a;
$custom-light: #7c5eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#381e9a",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 154
  },
  "hsl": {
    "h": 252.581,
    "s": 67.391,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36556,
    "c": 0.1843,
    "h": 281.9
  },
  "luminance": 0.04102
}

Semantic roles & 50–950 ramp

primary
#381E9A
secondary
#AAC153
accent
#EA3EC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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