#381C7B#381C7B

#381C7B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.149 H 289.0°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#381C7B
RGBrgb(56, 28, 123)
HSLhsl(258, 63%, 30%)
HSVhsv(258, 77%, 48%)
CMYKcmyk(54.5%, 77.2%, 0%, 51.8%)
CIE-LABlab(20.44, 37.71, -49.00)
CIE-LCHlch(20.44, 61.83, 307.58°)
OKLaboklab(33.1% 0.0485 -0.1408)
OKLCHoklch(33.1% 0.149 289)
XYZxyz(5.6202, 3.1011, 19.0375)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C7B #5F7B1C
analogous
#1C307B #381C7B #681C7B
triadic
#381C7B #7B381C #1C7B38
tetradic
#381C7B #7B1C30 #5F7B1C #1C7B68
square
#381C7B #7B1C30 #5F7B1C #1C7B68
split-complementary
#381C7B #7B681C #307B1C
monochromatic
#0B0619 #211149 #381C7B #4F27AD #6A3ED3

Accessibility & contrast

On white

12.96
#381C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381C7B
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C7B#FFFFFF#000000##FFFFFF
##381C7B1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#1F364A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381c7b;
/* rgb */ color: rgb(56, 28, 123);
/* oklch */ color: oklch(33.1% 0.149 289.0);
Tailwind
colors: {
  custom: {
    50: '#775ba2',
    500: '#381c7b',
    950: '#000000',
  },
}
SCSS
$custom: #381c7b;
$custom-light: #775ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#381c7b",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 257.684,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33101,
    "c": 0.14897,
    "h": 289
  },
  "luminance": 0.03101
}

Semantic roles & 50–950 ramp

primary
#381C7B
secondary
#8FAF44
accent
#E642B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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