#381C6F#381C6F

#381C6F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.134 H 292.6°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#381C6F
RGBrgb(56, 28, 111)
HSLhsl(260, 60%, 27%)
HSVhsv(260, 75%, 44%)
CMYKcmyk(49.5%, 74.8%, 0%, 56.5%)
CIE-LABlab(19.30, 34.11, -43.16)
CIE-LCHlch(19.30, 55.01, 308.32°)
OKLaboklab(31.94% 0.0515 -0.1237)
OKLCHoklch(31.94% 0.134 292.6)
XYZxyz(4.9146, 2.8188, 15.3210)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C6F #536F1C
analogous
#1C2A6F #381C6F #621C6F
triadic
#381C6F #6F381C #1C6F38
tetradic
#381C6F #6F1C2A #536F1C #1C6F62
square
#381C6F #6F1C2A #536F1C #1C6F62
split-complementary
#381C6F #6F621C #2A6F1C
monochromatic
#0C0618 #1F103E #381C6F #5128A0 #6B38CD

Accessibility & contrast

On white

13.43
#381C6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381C6F
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C6F#FFFFFF#000000##FFFFFF
##381C6F1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#273143
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381c6f;
/* rgb */ color: rgb(56, 28, 111);
/* oklch */ color: oklch(31.9% 0.134 292.6);
Tailwind
colors: {
  custom: {
    50: '#755b99',
    500: '#381c6f',
    950: '#000000',
  },
}
SCSS
$custom: #381c6f;
$custom-light: #755b99;
$custom-dark: #000000;
JSON
{
  "hex": "#381c6f",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 111
  },
  "hsl": {
    "h": 260.241,
    "s": 59.712,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31944,
    "c": 0.134,
    "h": 292.6
  },
  "luminance": 0.02819
}

Semantic roles & 50–950 ramp

primary
#381C6F
secondary
#83A443
accent
#E345AE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381C6F

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

Preview Lab → · Contrast checker → · Palette generator →

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