#381D83#381D83

#381D83 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.158 H 286.8°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#381D83
RGBrgb(56, 29, 131)
HSLhsl(256, 64%, 31%)
HSVhsv(256, 78%, 51%)
CMYKcmyk(57.3%, 77.9%, 0%, 48.6%)
CIE-LABlab(21.42, 39.60, -52.46)
CIE-LCHlch(21.42, 65.73, 307.04°)
OKLaboklab(34.03% 0.0455 -0.151)
OKLCHoklch(34.03% 0.158 286.8)
XYZxyz(6.1658, 3.3578, 21.7916)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D83 #68831D
analogous
#1D3583 #381D83 #6B1D83
triadic
#381D83 #83381D #1D8338
tetradic
#381D83 #831D35 #68831D #1D836B
square
#381D83 #831D35 #68831D #1D836B
split-complementary
#381D83 #836B1D #35831D
monochromatic
#0D071F #231251 #381D83 #4D28B5 #6B45D6

Accessibility & contrast

On white

12.56
#381D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#381D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D83
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D83#FFFFFF#000000##FFFFFF
##381D831.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381d83;
/* rgb */ color: rgb(56, 29, 131);
/* oklch */ color: oklch(34.0% 0.158 286.8);
Tailwind
colors: {
  custom: {
    50: '#785ca8',
    500: '#381d83',
    950: '#000000',
  },
}
SCSS
$custom: #381d83;
$custom-light: #785ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#381d83",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 131
  },
  "hsl": {
    "h": 255.882,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34031,
    "c": 0.1577,
    "h": 286.8
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#381D83
secondary
#98B646
accent
#E741BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381D83

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

Preview Lab → · Contrast checker → · Palette generator →

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