#381C9D#381C9D

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

Color values

HEX#381C9D
RGBrgb(56, 28, 157)
HSLhsl(253, 70%, 36%)
HSVhsv(253, 82%, 62%)
CMYKcmyk(64.3%, 82.2%, 0%, 38.4%)
CIE-LABlab(24.02, 47.82, -64.33)
CIE-LCHlch(24.02, 80.16, 306.63°)
OKLaboklab(36.66% 0.0381 -0.1856)
OKLCHoklch(36.66% 0.189 281.6)
XYZxyz(8.1300, 4.1050, 32.2557)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C9D #819D1C
analogous
#1C419D #381C9D #791C9D
triadic
#381C9D #9D381C #1C9D38
tetradic
#381C9D #9D1C41 #819D1C #1C9D79
square
#381C9D #9D1C41 #819D1C #1C9D79
split-complementary
#381C9D #9D791C #419D1C
monochromatic
#130935 #251369 #381C9D #4B25D1 #7253E0

Accessibility & contrast

On white

11.53
#381C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381C9D
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C9D#FFFFFF#000000##FFFFFF
##381C9D1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA1
Deuteranopia (green-blind)
#00349B
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #381c9d;
/* rgb */ color: rgb(56, 28, 157);
/* oklch */ color: oklch(36.7% 0.189 281.6);
Tailwind
colors: {
  custom: {
    50: '#7d5ebb',
    500: '#381c9d',
    950: '#000000',
  },
}
SCSS
$custom: #381c9d;
$custom-light: #7d5ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#381c9d",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 157
  },
  "hsl": {
    "h": 253.023,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3666,
    "c": 0.18949,
    "h": 281.6
  },
  "luminance": 0.04106
}

Semantic roles & 50–950 ramp

primary
#381C9D
secondary
#ABC351
accent
#ED3BC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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