#381E95#381E95

#381E95 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.178 H 282.8°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#381E95
RGBrgb(56, 30, 149)
HSLhsl(253, 66%, 35%)
HSVhsv(253, 80%, 58%)
CMYKcmyk(62.4%, 79.9%, 0%, 41.6%)
CIE-LABlab(23.47, 44.51, -60.32)
CIE-LCHlch(23.47, 74.97, 306.42°)
OKLaboklab(36.02% 0.0395 -0.174)
OKLCHoklch(36.02% 0.178 282.8)
XYZxyz(7.5183, 3.9387, 28.7920)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E95 #7B951E
analogous
#1E4095 #381E95 #731E95
triadic
#381E95 #95381E #1E9538
tetradic
#381E95 #951E40 #7B951E #1E9573
square
#381E95 #951E40 #7B951E #1E9573
split-complementary
#381E95 #95731E #40951E
monochromatic
#12092F #251462 #381E95 #4B28C8 #7051DC

Accessibility & contrast

On white

11.75
#381E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#381E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E95
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E95#FFFFFF#000000##FFFFFF
##381E951.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #381e95;
/* rgb */ color: rgb(56, 30, 149);
/* oklch */ color: oklch(36.0% 0.178 282.8);
Tailwind
colors: {
  custom: {
    50: '#7b5eb5',
    500: '#381e95',
    950: '#000000',
  },
}
SCSS
$custom: #381e95;
$custom-light: #7b5eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#381e95",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 253.109,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36022,
    "c": 0.17839,
    "h": 282.8
  },
  "luminance": 0.03939
}

Semantic roles & 50–950 ramp

primary
#381E95
secondary
#A7BF50
accent
#E93EC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #381E95

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

Preview Lab → · Contrast checker → · Palette generator →

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