#381C7D#381C7D

#381C7D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.151 H 288.5°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#381C7D
RGBrgb(56, 28, 125)
HSLhsl(257, 63%, 30%)
HSVhsv(257, 78%, 49%)
CMYKcmyk(55.2%, 77.6%, 0%, 51%)
CIE-LABlab(20.64, 38.31, -49.95)
CIE-LCHlch(20.64, 62.95, 307.49°)
OKLaboklab(33.3% 0.048 -0.1436)
OKLCHoklch(33.3% 0.151 288.5)
XYZxyz(5.7467, 3.1516, 19.7036)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C7D #617D1C
analogous
#1C307D #381C7D #691C7D
triadic
#381C7D #7D381C #1C7D38
tetradic
#381C7D #7D1C30 #617D1C #1C7D69
square
#381C7D #7D1C30 #617D1C #1C7D69
split-complementary
#381C7D #7D691C #307D1C
monochromatic
#0B0619 #22114B #381C7D #4E27AF #6A3FD4

Accessibility & contrast

On white

12.88
#381C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#381C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C7D
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C7D#FFFFFF#000000##FFFFFF
##381C7D1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#1D374B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381c7d;
/* rgb */ color: rgb(56, 28, 125);
/* oklch */ color: oklch(33.3% 0.151 288.5);
Tailwind
colors: {
  custom: {
    50: '#775ca4',
    500: '#381c7d',
    950: '#000000',
  },
}
SCSS
$custom: #381c7d;
$custom-light: #775ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#381c7d",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 257.32,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.333,
    "c": 0.15143,
    "h": 288.5
  },
  "luminance": 0.03152
}

Semantic roles & 50–950 ramp

primary
#381C7D
secondary
#91B144
accent
#E641B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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