#381B77#381B77

#381B77 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.145 H 290.3°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#381B77
RGBrgb(56, 27, 119)
HSLhsl(259, 63%, 29%)
HSVhsv(259, 77%, 47%)
CMYKcmyk(52.9%, 77.3%, 0%, 53.3%)
CIE-LABlab(19.87, 37.04, -47.39)
CIE-LCHlch(19.87, 60.14, 308.01°)
OKLaboklab(32.58% 0.0505 -0.1361)
OKLCHoklch(32.58% 0.145 290.3)
XYZxyz(5.3516, 2.9563, 17.7378)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B77 #5A771B
analogous
#1B2C77 #381B77 #661B77
triadic
#381B77 #77381B #1B7738
tetradic
#381B77 #771B2C #5A771B #1B7766
square
#381B77 #771B2C #5A771B #1B7766
split-complementary
#381B77 #77661B #2C771B
monochromatic
#0C0619 #211045 #381B77 #4F26A9 #6A3AD2

Accessibility & contrast

On white

13.20
#381B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#381B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B77
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B77#FFFFFF#000000##FFFFFF
##381B771.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381b77;
/* rgb */ color: rgb(56, 27, 119);
/* oklch */ color: oklch(32.6% 0.145 290.3);
Tailwind
colors: {
  custom: {
    50: '#765b9f',
    500: '#381b77',
    950: '#000000',
  },
}
SCSS
$custom: #381b77;
$custom-light: #765b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#381b77",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 258.913,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32576,
    "c": 0.14517,
    "h": 290.3
  },
  "luminance": 0.02957
}

Semantic roles & 50–950 ramp

primary
#381B77
secondary
#8AAB42
accent
#E642B2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #381B77

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

Preview Lab → · Contrast checker → · Palette generator →

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