#381E92#381E92

#381E92 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.175 H 283.4°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#381E92
RGBrgb(56, 30, 146)
HSLhsl(253, 66%, 35%)
HSVhsv(253, 79%, 57%)
CMYKcmyk(61.6%, 79.5%, 0%, 42.7%)
CIE-LABlab(23.15, 43.61, -58.99)
CIE-LCHlch(23.15, 73.37, 306.47°)
OKLaboklab(35.71% 0.0404 -0.1701)
OKLCHoklch(35.71% 0.175 283.4)
XYZxyz(7.2819, 3.8441, 27.5468)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E92 #78921E
analogous
#1E3E92 #381E92 #721E92
triadic
#381E92 #92381E #1E9238
tetradic
#381E92 #921E3E #78921E #1E9272
square
#381E92 #921E3E #78921E #1E9272
split-complementary
#381E92 #92721E #3E921E
monochromatic
#11092C #25145F #381E92 #4B28C5 #6F4FDB

Accessibility & contrast

On white

11.87
#381E92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#381E92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E92
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E92#FFFFFF#000000##FFFFFF
##381E921.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B95
Deuteranopia (green-blind)
#003390
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #381e92;
/* rgb */ color: rgb(56, 30, 146);
/* oklch */ color: oklch(35.7% 0.175 283.4);
Tailwind
colors: {
  custom: {
    50: '#7b5eb3',
    500: '#381e92',
    950: '#000000',
  },
}
SCSS
$custom: #381e92;
$custom-light: #7b5eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#381e92",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 146
  },
  "hsl": {
    "h": 253.448,
    "s": 65.909,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35705,
    "c": 0.17482,
    "h": 283.4
  },
  "luminance": 0.03845
}

Semantic roles & 50–950 ramp

primary
#381E92
secondary
#A5BE4E
accent
#E93FC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381E92

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

Preview Lab → · Contrast checker → · Palette generator →

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