#381C7A#381C7A

#381C7A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.148 H 289.3°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#381C7A
RGBrgb(56, 28, 122)
HSLhsl(258, 63%, 29%)
HSVhsv(258, 77%, 48%)
CMYKcmyk(54.1%, 77%, 0%, 52.2%)
CIE-LABlab(20.35, 37.41, -48.52)
CIE-LCHlch(20.35, 61.27, 307.63°)
OKLaboklab(33% 0.0488 -0.1394)
OKLCHoklch(33% 0.148 289.3)
XYZxyz(5.5580, 3.0761, 18.7095)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C7A #5E7A1C
analogous
#1C2F7A #381C7A #671C7A
triadic
#381C7A #7A381C #1C7A38
tetradic
#381C7A #7A1C2F #5E7A1C #1C7A67
square
#381C7A #7A1C2F #5E7A1C #1C7A67
split-complementary
#381C7A #7A671C #2F7A1C
monochromatic
#0B0619 #211148 #381C7A #4F27AC #6A3ED3

Accessibility & contrast

On white

13.00
#381C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#381C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C7A
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C7A#FFFFFF#000000##FFFFFF
##381C7A1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#1F3649
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381c7a;
/* rgb */ color: rgb(56, 28, 122);
/* oklch */ color: oklch(33.0% 0.148 289.3);
Tailwind
colors: {
  custom: {
    50: '#765ba1',
    500: '#381c7a',
    950: '#000000',
  },
}
SCSS
$custom: #381c7a;
$custom-light: #765ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#381c7a",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 257.872,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33002,
    "c": 0.14774,
    "h": 289.3
  },
  "luminance": 0.03076
}

Semantic roles & 50–950 ramp

primary
#381C7A
secondary
#8EAE44
accent
#E642B5
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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