#381E85#381E85

#381E85 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.159 H 286.1°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#381E85
RGBrgb(56, 30, 133)
HSLhsl(255, 63%, 32%)
HSVhsv(255, 77%, 52%)
CMYKcmyk(57.9%, 77.4%, 0%, 47.8%)
CIE-LABlab(21.81, 39.68, -53.09)
CIE-LCHlch(21.81, 66.28, 306.77°)
OKLaboklab(34.36% 0.0442 -0.1528)
OKLCHoklch(34.36% 0.159 286.1)
XYZxyz(6.3275, 3.4624, 22.5206)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E85 #6B851E
analogous
#1E3785 #381E85 #6C1E85
triadic
#381E85 #85381E #1E8538
tetradic
#381E85 #851E37 #6B851E #1E856C
square
#381E85 #851E37 #6B851E #1E856C
split-complementary
#381E85 #856C1E #37851E
monochromatic
#0E0721 #231353 #381E85 #4D29B7 #6C48D6

Accessibility & contrast

On white

12.41
#381E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#381E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E85
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E85#FFFFFF#000000##FFFFFF
##381E851.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#133B50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #381e85;
/* rgb */ color: rgb(56, 30, 133);
/* oklch */ color: oklch(34.4% 0.159 286.1);
Tailwind
colors: {
  custom: {
    50: '#785daa',
    500: '#381e85',
    950: '#000000',
  },
}
SCSS
$custom: #381e85;
$custom-light: #785daa;
$custom-dark: #000000;
JSON
{
  "hex": "#381e85",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 133
  },
  "hsl": {
    "h": 255.146,
    "s": 63.19,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34362,
    "c": 0.15909,
    "h": 286.1
  },
  "luminance": 0.03463
}

Semantic roles & 50–950 ramp

primary
#381E85
secondary
#9BB847
accent
#E642BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381E85

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

Preview Lab → · Contrast checker → · Palette generator →

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