#381C8F#381C8F

#381C8F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.173 H 284.2°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#381C8F
RGBrgb(56, 28, 143)
HSLhsl(255, 67%, 34%)
HSVhsv(255, 80%, 56%)
CMYKcmyk(60.8%, 80.4%, 0%, 43.9%)
CIE-LABlab(22.49, 43.69, -58.22)
CIE-LCHlch(22.49, 72.79, 306.89°)
OKLaboklab(35.15% 0.0426 -0.1678)
OKLCHoklch(35.15% 0.173 284.2)
XYZxyz(7.0025, 3.6540, 26.3176)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C8F #738F1C
analogous
#1C398F #381C8F #711C8F
triadic
#381C8F #8F381C #1C8F38
tetradic
#381C8F #8F1C39 #738F1C #1C8F71
square
#381C8F #8F1C39 #738F1C #1C8F71
split-complementary
#381C8F #8F711C #398F1C
monochromatic
#100829 #24125C #381C8F #4C26C2 #6D4ADC

Accessibility & contrast

On white

12.13
#381C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#381C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C8F
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C8F#FFFFFF#000000##FFFFFF
##381C8F1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381c8f;
/* rgb */ color: rgb(56, 28, 143);
/* oklch */ color: oklch(35.2% 0.173 284.2);
Tailwind
colors: {
  custom: {
    50: '#7a5db1',
    500: '#381c8f',
    950: '#000000',
  },
}
SCSS
$custom: #381c8f;
$custom-light: #7a5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#381c8f",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 254.609,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35153,
    "c": 0.17311,
    "h": 284.2
  },
  "luminance": 0.03654
}

Semantic roles & 50–950 ramp

primary
#381C8F
secondary
#A1BE49
accent
#EA3EC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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