#381A77#381A77

#381A77 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.146 H 290.5°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#381A77
RGBrgb(56, 26, 119)
HSLhsl(259, 64%, 28%)
HSVhsv(259, 78%, 47%)
CMYKcmyk(52.9%, 78.2%, 0%, 53.3%)
CIE-LABlab(19.68, 37.56, -47.69)
CIE-LCHlch(19.68, 60.70, 308.22°)
OKLaboklab(32.45% 0.0513 -0.137)
OKLCHoklch(32.45% 0.146 290.5)
XYZxyz(5.3291, 2.9112, 17.7303)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A77 #59771A
analogous
#1A2A77 #381A77 #661A77
triadic
#381A77 #77381A #1A7738
tetradic
#381A77 #771A2A #59771A #1A7766
square
#381A77 #771A2A #59771A #1A7766
split-complementary
#381A77 #77661A #2A771A
monochromatic
#0C0519 #200F45 #381A77 #5025A9 #6A38D3

Accessibility & contrast

On white

13.27
#381A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#381A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A77
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A77#FFFFFF#000000##FFFFFF
##381A771.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#223447
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381a77;
/* rgb */ color: rgb(56, 26, 119);
/* oklch */ color: oklch(32.4% 0.146 290.5);
Tailwind
colors: {
  custom: {
    50: '#765a9f',
    500: '#381a77',
    950: '#000000',
  },
}
SCSS
$custom: #381a77;
$custom-light: #765a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#381a77",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 259.355,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32447,
    "c": 0.14629,
    "h": 290.5
  },
  "luminance": 0.02911
}

Semantic roles & 50–950 ramp

primary
#381A77
secondary
#89AC41
accent
#E741B1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #381A77

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

Preview Lab → · Contrast checker → · Palette generator →

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