#381B83#381B83

#381B83 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.160 H 287.1°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#381B83
RGBrgb(56, 27, 131)
HSLhsl(257, 66%, 31%)
HSVhsv(257, 79%, 51%)
CMYKcmyk(57.3%, 79.4%, 0%, 48.6%)
CIE-LABlab(21.07, 40.61, -53.05)
CIE-LCHlch(21.07, 66.81, 307.44°)
OKLaboklab(33.78% 0.047 -0.1527)
OKLCHoklch(33.78% 0.16 287.1)
XYZxyz(6.1183, 3.2630, 21.7758)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B83 #66831B
analogous
#1B3283 #381B83 #6C1B83
triadic
#381B83 #83381B #1B8338
tetradic
#381B83 #831B32 #66831B #1B836C
square
#381B83 #831B32 #66831B #1B836C
split-complementary
#381B83 #836C1B #32831B
monochromatic
#0D061E #221150 #381B83 #4E25B6 #6B41D8

Accessibility & contrast

On white

12.71
#381B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#381B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B83
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B83#FFFFFF#000000##FFFFFF
##381B831.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#16394E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381b83;
/* rgb */ color: rgb(56, 27, 131);
/* oklch */ color: oklch(33.8% 0.160 287.1);
Tailwind
colors: {
  custom: {
    50: '#785ba8',
    500: '#381b83',
    950: '#000000',
  },
}
SCSS
$custom: #381b83;
$custom-light: #785ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#381b83",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 256.731,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33782,
    "c": 0.15976,
    "h": 287.1
  },
  "luminance": 0.03263
}

Semantic roles & 50–950 ramp

primary
#381B83
secondary
#96B643
accent
#E93FB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381B83

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

Preview Lab → · Contrast checker → · Palette generator →

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