#381E8F#381E8F

#381E8F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.171 H 284.0°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#381E8F
RGBrgb(56, 30, 143)
HSLhsl(254, 65%, 34%)
HSVhsv(254, 79%, 56%)
CMYKcmyk(60.8%, 79%, 0%, 43.9%)
CIE-LABlab(22.83, 42.71, -57.65)
CIE-LCHlch(22.83, 71.75, 306.53°)
OKLaboklab(35.39% 0.0413 -0.1662)
OKLCHoklch(35.39% 0.171 284)
XYZxyz(7.0516, 3.7520, 26.3339)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E8F #758F1E
analogous
#1E3D8F #381E8F #711E8F
triadic
#381E8F #8F381E #1E8F38
tetradic
#381E8F #8F1E3D #758F1E #1E8F71
square
#381E8F #8F1E3D #758F1E #1E8F71
split-complementary
#381E8F #8F711E #3D8F1E
monochromatic
#10092A #24135C #381E8F #4C29C2 #6E4EDA

Accessibility & contrast

On white

12.00
#381E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#381E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E8F
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E8F#FFFFFF#000000##FFFFFF
##381E8F1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381e8f;
/* rgb */ color: rgb(56, 30, 143);
/* oklch */ color: oklch(35.4% 0.171 284.0);
Tailwind
colors: {
  custom: {
    50: '#7a5eb1',
    500: '#381e8f',
    950: '#000000',
  },
}
SCSS
$custom: #381e8f;
$custom-light: #7a5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#381e8f",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 253.805,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3539,
    "c": 0.17122,
    "h": 284
  },
  "luminance": 0.03752
}

Semantic roles & 50–950 ramp

primary
#381E8F
secondary
#A3BC4C
accent
#E840C1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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