#381D6C#381D6C

#381D6C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.129 H 293.3°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#381D6C
RGBrgb(56, 29, 108)
HSLhsl(261, 58%, 27%)
HSVhsv(261, 73%, 42%)
CMYKcmyk(48.1%, 73.1%, 0%, 57.6%)
CIE-LABlab(19.23, 32.64, -41.32)
CIE-LCHlch(19.23, 52.66, 308.31°)
OKLaboklab(31.81% 0.0511 -0.1183)
OKLCHoklch(31.81% 0.129 293.3)
XYZxyz(4.7763, 2.8020, 14.4736)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D6C #516C1D
analogous
#1D2A6C #381D6C #601D6C
triadic
#381D6C #6C381D #1D6C38
tetradic
#381D6C #6C1D2A #516C1D #1D6C60
square
#381D6C #6C1D2A #516C1D #1D6C60
split-complementary
#381D6C #6C601D #2A6C1D
monochromatic
#0D0618 #1F103C #381D6C #512A9C #6B39CA

Accessibility & contrast

On white

13.46
#381D6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#381D6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D6C
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D6C#FFFFFF#000000##FFFFFF
##381D6C1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#293142
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381d6c;
/* rgb */ color: rgb(56, 29, 108);
/* oklch */ color: oklch(31.8% 0.129 293.3);
Tailwind
colors: {
  custom: {
    50: '#745b97',
    500: '#381d6c',
    950: '#000000',
  },
}
SCSS
$custom: #381d6c;
$custom-light: #745b97;
$custom-dark: #000000;
JSON
{
  "hex": "#381d6c",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 108
  },
  "hsl": {
    "h": 260.506,
    "s": 57.664,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3181,
    "c": 0.12888,
    "h": 293.3
  },
  "luminance": 0.02802
}

Semantic roles & 50–950 ramp

primary
#381D6C
secondary
#81A144
accent
#E147AC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #381D6C

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

Preview Lab → · Contrast checker → · Palette generator →

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