#381E94#381E94

#381E94 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.177 H 283.0°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#381E94
RGBrgb(56, 30, 148)
HSLhsl(253, 66%, 35%)
HSVhsv(253, 80%, 58%)
CMYKcmyk(62.2%, 79.7%, 0%, 42%)
CIE-LABlab(23.36, 44.21, -59.88)
CIE-LCHlch(23.36, 74.44, 306.44°)
OKLaboklab(35.92% 0.0398 -0.1727)
OKLCHoklch(35.92% 0.177 283)
XYZxyz(7.4388, 3.9069, 28.3733)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E94 #7A941E
analogous
#1E3F94 #381E94 #731E94
triadic
#381E94 #94381E #1E9438
tetradic
#381E94 #941E3F #7A941E #1E9473
square
#381E94 #941E3F #7A941E #1E9473
split-complementary
#381E94 #94731E #3F941E
monochromatic
#11092E #251461 #381E94 #4B28C7 #6F51DC

Accessibility & contrast

On white

11.79
#381E94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#381E94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E94
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E94#FFFFFF#000000##FFFFFF
##381E941.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381e94;
/* rgb */ color: rgb(56, 30, 148);
/* oklch */ color: oklch(35.9% 0.177 283.0);
Tailwind
colors: {
  custom: {
    50: '#7b5eb5',
    500: '#381e94',
    950: '#000000',
  },
}
SCSS
$custom: #381e94;
$custom-light: #7b5eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#381e94",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 148
  },
  "hsl": {
    "h": 253.22,
    "s": 66.292,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35916,
    "c": 0.17721,
    "h": 283
  },
  "luminance": 0.03907
}

Semantic roles & 50–950 ramp

primary
#381E94
secondary
#A6BF4F
accent
#E93FC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #381E94

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

Preview Lab → · Contrast checker → · Palette generator →

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