#381D85#381D85

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

Color values

HEX#381D85
RGBrgb(56, 29, 133)
HSLhsl(256, 64%, 32%)
HSVhsv(256, 78%, 52%)
CMYKcmyk(57.9%, 78.2%, 0%, 47.8%)
CIE-LABlab(21.63, 40.20, -53.39)
CIE-LCHlch(21.63, 66.83, 306.98°)
OKLaboklab(34.24% 0.0449 -0.1537)
OKLCHoklch(34.24% 0.16 286.3)
XYZxyz(6.3026, 3.4126, 22.5123)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D85 #6A851D
analogous
#1D3685 #381D85 #6C1D85
triadic
#381D85 #85381D #1D8538
tetradic
#381D85 #851D36 #6A851D #1D856C
square
#381D85 #851D36 #6A851D #1D856C
split-complementary
#381D85 #856C1D #36851D
monochromatic
#0E0721 #231253 #381D85 #4D28B7 #6B46D7

Accessibility & contrast

On white

12.48
#381D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381D85
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D85#FFFFFF#000000##FFFFFF
##381D851.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#143A50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #381d85;
/* rgb */ color: rgb(56, 29, 133);
/* oklch */ color: oklch(34.2% 0.160 286.3);
Tailwind
colors: {
  custom: {
    50: '#785daa',
    500: '#381d85',
    950: '#000000',
  },
}
SCSS
$custom: #381d85;
$custom-light: #785daa;
$custom-dark: #000000;
JSON
{
  "hex": "#381d85",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 133
  },
  "hsl": {
    "h": 255.577,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34235,
    "c": 0.16014,
    "h": 286.3
  },
  "luminance": 0.03413
}

Semantic roles & 50–950 ramp

primary
#381D85
secondary
#9AB846
accent
#E741BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381D85

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

Preview Lab → · Contrast checker → · Palette generator →

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