#381E9B#381E9B

#381E9B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.185 H 281.7°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#381E9B
RGBrgb(56, 30, 155)
HSLhsl(252, 68%, 36%)
HSVhsv(252, 81%, 61%)
CMYKcmyk(63.9%, 80.6%, 0%, 39.2%)
CIE-LABlab(24.11, 46.31, -62.95)
CIE-LCHlch(24.11, 78.14, 306.34°)
OKLaboklab(36.66% 0.0377 -0.1816)
OKLCHoklch(36.66% 0.185 281.7)
XYZxyz(8.0097, 4.1353, 31.3801)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E9B #819B1E
analogous
#1E439B #381E9B #771E9B
triadic
#381E9B #9B381E #1E9B38
tetradic
#381E9B #9B1E43 #819B1E #1E9B77
square
#381E9B #9B1E43 #819B1E #1E9B77
split-complementary
#381E9B #9B771E #439B1E
monochromatic
#130A34 #251468 #381E9B #4B28CE #7255DE

Accessibility & contrast

On white

11.49
#381E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#381E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E9B
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E9B#FFFFFF#000000##FFFFFF
##381E9B1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003599
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #381e9b;
/* rgb */ color: rgb(56, 30, 155);
/* oklch */ color: oklch(36.7% 0.185 281.7);
Tailwind
colors: {
  custom: {
    50: '#7c5eba',
    500: '#381e9b',
    950: '#000000',
  },
}
SCSS
$custom: #381e9b;
$custom-light: #7c5eba;
$custom-dark: #000000;
JSON
{
  "hex": "#381e9b",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 252.48,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36663,
    "c": 0.18547,
    "h": 281.7
  },
  "luminance": 0.04136
}

Semantic roles & 50–950 ramp

primary
#381E9B
secondary
#ABC253
accent
#EA3DC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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