#381E83#381E83

#381E83 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.157 H 286.6°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#381E83
RGBrgb(56, 30, 131)
HSLhsl(255, 63%, 32%)
HSVhsv(255, 77%, 51%)
CMYKcmyk(57.3%, 77.1%, 0%, 48.6%)
CIE-LABlab(21.61, 39.07, -52.16)
CIE-LCHlch(21.61, 65.17, 306.83°)
OKLaboklab(34.16% 0.0447 -0.1501)
OKLCHoklch(34.16% 0.157 286.6)
XYZxyz(6.1907, 3.4077, 21.7999)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E83 #69831E
analogous
#1E3683 #381E83 #6B1E83
triadic
#381E83 #83381E #1E8338
tetradic
#381E83 #831E36 #69831E #1E836B
square
#381E83 #831E36 #69831E #1E836B
split-complementary
#381E83 #836B1E #36831E
monochromatic
#0D071F #231351 #381E83 #4D29B5 #6B47D5

Accessibility & contrast

On white

12.49
#381E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#381E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E83
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E83#FFFFFF#000000##FFFFFF
##381E831.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#003181
Tritanopia (blue-blind)
#163A4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #381e83;
/* rgb */ color: rgb(56, 30, 131);
/* oklch */ color: oklch(34.2% 0.157 286.6);
Tailwind
colors: {
  custom: {
    50: '#785da8',
    500: '#381e83',
    950: '#000000',
  },
}
SCSS
$custom: #381e83;
$custom-light: #785da8;
$custom-dark: #000000;
JSON
{
  "hex": "#381e83",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 131
  },
  "hsl": {
    "h": 255.446,
    "s": 62.733,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34161,
    "c": 0.15663,
    "h": 286.6
  },
  "luminance": 0.03408
}

Semantic roles & 50–950 ramp

primary
#381E83
secondary
#99B647
accent
#E642BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381E83

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

Preview Lab → · Contrast checker → · Palette generator →

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